Update README.md
Browse files
README.md
CHANGED
@@ -12,4 +12,69 @@ tags:
|
|
12 |
- coder
|
13 |
- reasoner
|
14 |
---
|
15 |
-

|
16 |
+
|
17 |
+
# **Viper-Coder-Hybrid-v1.2**
|
18 |
+
|
19 |
+
Viper-Coder-Hybrid-v1.2 is based on the Qwen 2.5 14B modality architecture, designed to be the **best** for coding and reasoning tasks. It has been fine-tuned on a synthetic dataset leveraging the latest coding logits and CoT datasets, further optimizing its **chain-of-thought (CoT) reasoning** and **logical problem-solving** abilities. The model demonstrates significant improvements in **context understanding, structured data processing, and long-context comprehension**, making it ideal for **complex coding tasks, instruction-following, and text generation**.
|
20 |
+
|
21 |
+
### **Key Improvements**
|
22 |
+
1. **Best-in-Class Coding Proficiency**: Enhanced understanding of programming languages, debugging, and code generation.
|
23 |
+
2. **Fine-Tuned Instruction Following**: Optimized for precise responses, structured outputs (e.g., JSON, YAML), and extended text generation (**8K+ tokens**).
|
24 |
+
3. **Advanced Logical & Mathematical Reasoning**: Improved multi-step problem-solving and theorem proving.
|
25 |
+
4. **Long-Context Mastery**: Handles up to **128K tokens** with an output capability of **8K tokens** per response.
|
26 |
+
5. **Multilingual Code Support**: Excels in **Python, JavaScript, C++, Java, SQL**, and other major programming languages, with documentation in **29+ languages**.
|
27 |
+
|
28 |
+
### **Quickstart with Transformers**
|
29 |
+
|
30 |
+
```python
|
31 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
32 |
+
|
33 |
+
model_name = "prithivMLmods/Viper-Coder-Hybrid-v1.2"
|
34 |
+
|
35 |
+
model = AutoModelForCausalLM.from_pretrained(
|
36 |
+
model_name,
|
37 |
+
torch_dtype="auto",
|
38 |
+
device_map="auto",
|
39 |
+
trust_remote_code=True
|
40 |
+
)
|
41 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
42 |
+
|
43 |
+
prompt = "Write a Python function to merge two sorted lists."
|
44 |
+
messages = [
|
45 |
+
{"role": "system", "content": "You are an advanced AI assistant with expert-level coding and reasoning abilities."},
|
46 |
+
{"role": "user", "content": prompt}
|
47 |
+
]
|
48 |
+
text = tokenizer.apply_chat_template(
|
49 |
+
messages,
|
50 |
+
tokenize=False,
|
51 |
+
add_generation_prompt=True
|
52 |
+
)
|
53 |
+
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
|
54 |
+
|
55 |
+
generated_ids = model.generate(
|
56 |
+
**model_inputs,
|
57 |
+
max_new_tokens=512
|
58 |
+
)
|
59 |
+
generated_ids = [
|
60 |
+
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
|
61 |
+
]
|
62 |
+
|
63 |
+
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
|
64 |
+
print(response)
|
65 |
+
```
|
66 |
+
|
67 |
+
### **Intended Use**
|
68 |
+
- **Elite Coding & Debugging**: Best-in-class model for writing, analyzing, and optimizing code.
|
69 |
+
- **Complex Algorithmic Reasoning**: Solves intricate logic problems and algorithm-based challenges.
|
70 |
+
- **Scientific & Mathematical Computation**: Advanced support for formulas, equations, and theorem verification.
|
71 |
+
- **Structured Data Processing**: Seamlessly handles JSON, XML, SQL, and data pipeline automation.
|
72 |
+
- **Multilingual Programming Support**: Proficient in Python, JavaScript, C++, Java, Go, and more.
|
73 |
+
- **Extended Technical Content Generation**: Ideal for writing documentation, research papers, and technical blogs.
|
74 |
+
|
75 |
+
### **Limitations**
|
76 |
+
1. **High Computational Demand**: Requires powerful GPUs/TPUs for smooth inference due to **14B parameters**.
|
77 |
+
2. **Language-Specific Variability**: Performance may vary across different programming languages.
|
78 |
+
3. **Possible Error Propagation**: Extended text outputs might introduce logical inconsistencies.
|
79 |
+
4. **Limited Real-World Awareness**: The model does not have access to real-time internet updates.
|
80 |
+
5. **Prompt Sensitivity**: Performance depends on how well the prompt is structured.
|