Files changed (1) hide show
  1. README.md +80 -1
README.md CHANGED
@@ -5,4 +5,83 @@ language:
5
  - en
6
  - uk
7
  - zh
8
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  - en
6
  - uk
7
  - zh
8
+ ---
9
+ # PyroNet-v2
10
+
11
+ **PyroNet-v2** is a fine-tuned conversational AI model based on [Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct).
12
+ It is the successor to **PyroNet-v1.5**, which was built on top of [phi-2](https://huggingface.co/microsoft/phi-2).
13
+
14
+ Created by **IceL1ghtning (Artyom, Ukraine)**.
15
+
16
+ ---
17
+
18
+ ## πŸ”§ Model Details
19
+ - **Base model:** Qwen2.5-3B-Instruct
20
+ - **Parameters:** ~3B
21
+ - **Previous version:** PyroNet-v1.5 (phi-2)
22
+ - **Input format:** ChatML (`<|im_start|>role ... <|im_end|>`)
23
+ - **Multilingual support:** English, Russian, Ukrainian, and more
24
+
25
+ ---
26
+
27
+ ## πŸš€ Quick Start
28
+
29
+ ### Installation
30
+ ```bash
31
+ pip install transformers accelerate
32
+ ```
33
+ ### Usage Example
34
+ ```python
35
+ from transformers import AutoTokenizer, AutoModelForCausalLM
36
+
37
+ model_name = "Kenan023214/PyroNet-v2"
38
+
39
+ # Load tokenizer and model
40
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
41
+ model = AutoModelForCausalLM.from_pretrained(
42
+ model_name,
43
+ device_map="auto"
44
+ )
45
+
46
+ # Example conversation
47
+ messages = [
48
+ {"role": "user", "content": "Hi! Can you solve the equation x^2 - 5x + 6 = 0?"}
49
+ ]
50
+
51
+ # Apply chat template
52
+ inputs = tokenizer.apply_chat_template(
53
+ messages,
54
+ tokenize=True,
55
+ add_generation_prompt=True,
56
+ return_tensors="pt"
57
+ ).to(model.device)
58
+
59
+ # Generate output
60
+ outputs = model.generate(
61
+ inputs,
62
+ max_new_tokens=256,
63
+ temperature=0.7,
64
+ do_sample=True
65
+ )
66
+
67
+ # Decode and print
68
+ response = tokenizer.decode(outputs[0], skip_special_tokens=True)
69
+ print(response)
70
+ ```
71
+
72
+ ## πŸ“‚ Version History
73
+
74
+ * **PyroNet-v1.5** β€” based on Microsoft phi-2
75
+
76
+ * **PyroNet-v2** β€” upgraded to Qwen2.5-3B-Instruct with improved accuracy and longer context handling
77
+
78
+ ## ⚠️ License & Limitations
79
+
80
+ This model is provided as is.
81
+ It must **not** be used for:
82
+
83
+ harmful or malicious activities
84
+
85
+ generating unsafe or illegal content
86
+
87
+ ✦ Created by IceL1ghtning (Artyom, Ukraine)