1e46eec171f29950468cd1787a34d79d050bd8e4
license, base_model, tags, library_name
| license | base_model | tags | library_name | |||
|---|---|---|---|---|---|---|
| apache-2.0 | Qwen/Qwen2.5-Coder-1.5B-Instruct |
|
transformers |
Index-9
Qwen2.5-Coder-1.5B-Instruct fine-tuned with QLoRA for coding (Python + web:
JS/TS/HTML/CSS). Designed to be paired with live web search — a small model
that leans on the web for facts. See the companion Space for the search-augmented
chat demo.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("Visixn/Index-9")
model = AutoModelForCausalLM.from_pretrained("Visixn/Index-9")
msgs = [{"role": "user", "content": "Write a palindrome checker in Python"}]
prompt = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
out = model.generate(**tok(prompt, return_tensors="pt"), max_new_tokens=256)
print(tok.decode(out[0], skip_special_tokens=True))
Description