Downloads · 30 days
13
33% of all-time downloads
tuxkt/pulsar-coder-1.5b
pulsar-coder-1.5b is a text generation model from tuxkt. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Pulsar, NeutronYazılım tarafından Qwen2.5-Coder-1.5B-Instruct üzerine QLoRA ile fine-tune edilmiş, TypeScript, Kotlin ve Python odaklı bir kod üretim modelidir.
Downloads · 30 days
13
33% of all-time downloads
All-time downloads
39
Public
Parameters
1.5B
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 99%
From the Hugging Face model README
Pulsar, NeutronYazılım tarafından Qwen2.5-Coder-1.5B-Instruct üzerine QLoRA ile fine-tune edilmiş, TypeScript, Kotlin ve Python odaklı bir kod üretim modelidir.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "NeutronYazilim/pulsar-coder-1.5b"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
messages = [
{"role": "system", "content": "You are an expert software engineer. Given an instruction, write the requested code."},
{"role": "user", "content": "Write a TypeScript function `debounce` that delays invoking a function until after a wait time."},
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=300, repetition_penalty=1.15)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Quantize edilmiş GGUF sürümü (llama.cpp ile kullanım için) NeutronYazilim/pulsar-coder-1.5b-GGUF altında mevcut.
Apache License 2.0 (baz modelle aynı).