PyroNet models family
Collection
Collection with the main PyroNet models.
โข
17 items
โข
Updated
PyroNet-v1.5 is an advanced AI assistant built on top of Microsoft Phi-2.
It introduces a custom system persona prompt through the tokenizerโs chat_template, enabling structured reasoning, multilingual support (Russian, English, Ukrainian), and a professional assistant style.
Thought: ... then Final Answer: ...from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "Kenan023214/PyroNet-v1.5"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
messages = [{"role": "user", "content": "Hello, who are you?"}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.7, top_p=0.9)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
May produce hallucinations or inaccurate outputs.
Not suitable for high-stakes domains (medical, legal, financial).
Refuses unsafe or unethical instructions.