Views
No views yet
"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."1ollama create typescript-slm-7b-reasoning -f gguf/Modelfile-q4_k_m
2ollama run typescript-slm-7b-reasoning "Explain why this React hook re-renders too often..."1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model = AutoModelForCausalLM.from_pretrained(
5 "sylvester-francis/typescript-slm-7b-reasoning-full",
6 torch_dtype=torch.float16,
7 device_map="auto",
8)
9tokenizer = AutoTokenizer.from_pretrained("sylvester-francis/typescript-slm-7b-reasoning-full")
10
11prompt = "Refactor this TypeScript service for better typing and error handling..."
12inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
13outputs = model.generate(
14 **inputs,
15 max_new_tokens=512,
16 temperature=0.3,
17 top_p=0.95,
18 do_sample=True,
19 pad_token_id=tokenizer.eos_token_id,
20)
21print(tokenizer.decode(outputs[0], skip_special_tokens=True))1huggingface-cli download sylvester-francis/typescript-slm-7b-reasoning-full \
2 gguf/typescript-slm-7b-reasoning-q4_k_m.gguf --local-dir ./models
3
4./llama-cli -m ./models/gguf/typescript-slm-7b-reasoning-q4_k_m.gguf \
5 -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)1Base Model: deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
2Method: LoRA fine-tuning
3Target Domains: TypeScript reasoning, debugging, refactoring
4LoRA Rank / Alpha: tuned for stability and reasoning depth
5Optimizer: AdamW
6Max Sequence Length: inherits base model context window@sylvester-francis on Hugging Face)