File size: 2,316 Bytes
3a101ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
license: mit
language:
- ru
- en
- uk
---
### **🔥 PyroNet-mini**

**PyroNet-mini** is a fine-tuned lightweight variant of [microsoft/Phi-4-mini-instruct](https://huggingface.co/microsoft/Phi-4-mini-instruct),  
trained with a **custom multilingual instruction dataset** (English, Ukrainian, Russian).  
It belongs to the **PyroNet family**, serving as the **mini version** of the main [PyroNet](https://huggingface.co/Kenan023214/PyroNet).  

---

### ✨ Features
- 🔹 Based on **Phi-4-mini-instruct**  
- 🔹 Fine-tuned with **LoRA adapters**  
- 🔹 Multilingual (English / Українська / Русский)  
- 🔹 Softer safety alignment for more natural answers  
- 🔹 Optimized for dialogue, coding help, and educational purposes  

---

### 🚀 Usage

## Inference with Transformers
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "Kenan023214/PyroNet-mini"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="auto",
    torch_dtype="auto"
)

messages = [
    {"role": "system", "content": system_prompt},
    {"role": "user", "content": "Explain quantum entanglement in simple words."}
]


input_text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(input_text, return_tensors="pt").to(model.device)

# Generate the response
outputs = model.generate(
    inputs,
    max_new_tokens=256,
    pad_token_id=tokenizer.eos_token_id
)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```

---


### 📊 Intended Use

Educational Q&A

Coding assistance

Multilingual chatbots

Creative writing and storytelling



---

### ⚡ Limitations

Being a mini model, it is less capable than larger PyroNet variants

May produce factual inaccuracies

Softer censorship may allow sensitive content



---

👤 Author & Contact

Author: IceL1ghtning

Maintainer: KenanAI

Contact:


<p align="left">
  <a href="https://t.me/LogovoOfEngineer">
    <img src="https://img.shields.io/badge/Telegram-Contact-blue?logo=telegram&style=for-the-badge" />
  </a>
  <a href="mailto:engineerglab@gmail.com">
    <img src="https://img.shields.io/badge/Email-Contact-red?logo=gmail&style=for-the-badge" />
  </a>
</p>
---