Downloads · 30 days
60
5% of all-time downloads
RedneckBOT/typescript-slm-7b-reasoning-full
typescript-slm-7b-reasoning-full is a text generation model from RedneckBOT. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
TypeScript-SLM-7B-Reasoning is a 7B-parameter DeepSeek-based model fine-tuned for step-by-step TypeScript reasoning. It merges the base model with LoRA adapters and includes GGUF quantization for local/Ollama workflows.
Downloads · 30 days
60
5% of all-time downloads
All-time downloads
1.1K
Public
Parameters
7.6B
19.9 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors15.2 GB · 76%
From the Hugging Face model README
TypeScript-SLM-7B-Reasoning is a 7B-parameter DeepSeek-based model fine-tuned for step-by-step TypeScript reasoning. It merges the base model with LoRA adapters and includes GGUF quantization for local/Ollama workflows.
This repository hosts the full merged model plus GGUF (q4_k_m) for lightweight inference.
Primary: TypeScript reasoning, debugging, refactoring, and guided code generation.
Out-of-scope: Arbitrary natural-language chat unrelated to code; safety-sensitive or factual tasks outside TypeScript.
"Debug this TypeScript function and explain the bug step by step:\n\nfunction add(a?: number, b?: number) { return a + b; }"
"Design a typed API surface for a Next.js todo service. Explain design choices, then show the final code."
ollama create typescript-slm-7b-reasoning -f gguf/Modelfile-q4_k_m
ollama run typescript-slm-7b-reasoning "Explain why this React hook re-renders too often..."
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"sylvester-francis/typescript-slm-7b-reasoning-full",
torch_dtype=torch.float16,
device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("sylvester-francis/typescript-slm-7b-reasoning-full")
prompt = "Refactor this TypeScript service for better typing and error handling..."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.3,
top_p=0.95,
do_sample=True,
pad_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
huggingface-cli download sylvester-francis/typescript-slm-7b-reasoning-full \
gguf/typescript-slm-7b-reasoning-q4_k_m.gguf --local-dir ./models
./llama-cli -m ./models/gguf/typescript-slm-7b-reasoning-q4_k_m.gguf \
-p "Explain and fix this TypeScript type error..."
gguf/typescript-slm-7b-reasoning-q4_k_m.gguf (≈4.7GB)gguf/Modelfile-q4_k_m (Ollama import)Base Model: deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
Method: LoRA fine-tuning
Target Domains: TypeScript reasoning, debugging, refactoring
LoRA Rank / Alpha: tuned for stability and reasoning depth
Optimizer: AdamW
Max Sequence Length: inherits base model context window
Qualitative checks on TypeScript debugging/refactoring prompts show:
MIT for the fine-tuned model; base model license and dataset terms also apply.
@sylvester-francis on Hugging Face)