prithivMLmods commited on
Commit
3aa5d9c
·
verified ·
1 Parent(s): 7eb147b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +84 -0
README.md CHANGED
@@ -7,3 +7,87 @@ datasets:
7
 
8
  ![rfhgsdfgb.png](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/vUrJIrNwLZghx_fwYMzQ5.png)
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  ![rfhgsdfgb.png](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/vUrJIrNwLZghx_fwYMzQ5.png)
9
 
10
+ # **Nu2-Lupi-Qwen-14B**
11
+
12
+ > Nu2-Lupi-Qwen-14B is based on the Qwen 2.5 14B modality architecture, designed to enhance mathematical reasoning capabilities. This model is optimized for complex problem-solving, logical deduction, and multi-step mathematical reasoning. It has been fine-tuned using the *gsm8k-platinum* dataset to improve accuracy, structured responses, and contextual understanding in mathematical domains.
13
+
14
+ ## **Key Improvements**
15
+ 1. **Enhanced Mathematical Proficiency**: The model excels in solving complex mathematical problems, including algebra, calculus, and number theory.
16
+ 2. **Advanced Reasoning Capabilities**: Optimized for step-by-step problem-solving, enabling clear and logical explanations for mathematical queries.
17
+ 3. **Improved Instruction Following**: Capable of understanding and executing multi-step instructions with precision, ensuring structured and coherent outputs.
18
+ 4. **Long-Context Support**: Supports up to 128K tokens for input context and can generate up to 8K tokens in a single output, making it ideal for detailed problem breakdowns.
19
+ 5. **Multilingual Mathematical Reasoning**: Supports over 29 languages, including English, Chinese, French, Spanish, Portuguese, German, Italian, Russian, Japanese, Korean, Vietnamese, Thai, Arabic, and more.
20
+
21
+ ## **Quickstart with transformers**
22
+
23
+ Here is a code snippet with `apply_chat_template` to show you how to load the tokenizer and model and generate content:
24
+
25
+ ```python
26
+ from transformers import AutoModelForCausalLM, AutoTokenizer
27
+
28
+ model_name = "prithivMLmods/Nu2-Lupi-Qwen-14B"
29
+
30
+ model = AutoModelForCausalLM.from_pretrained(
31
+ model_name,
32
+ torch_dtype="auto",
33
+ device_map="auto"
34
+ )
35
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
36
+
37
+ prompt = "Solve the equation: 3x + 5 = 14."
38
+ messages = [
39
+ {"role": "system", "content": "You are a mathematical reasoning assistant."},
40
+ {"role": "user", "content": prompt}
41
+ ]
42
+ text = tokenizer.apply_chat_template(
43
+ messages,
44
+ tokenize=False,
45
+ add_generation_prompt=True
46
+ )
47
+ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
48
+
49
+ generated_ids = model.generate(
50
+ **model_inputs,
51
+ max_new_tokens=512
52
+ )
53
+ generated_ids = [
54
+ output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
55
+ ]
56
+
57
+ response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
58
+ ```
59
+
60
+ ## **Intended Use**
61
+ 1. **Mathematical Reasoning and Problem-Solving**:
62
+ Fine-tuned for high-precision mathematical problem-solving, including algebra, geometry, calculus, and logic puzzles.
63
+
64
+ 2. **Educational and Academic Assistance**:
65
+ Ideal for students, educators, and researchers looking for structured explanations and step-by-step solutions.
66
+
67
+ 3. **Conversational AI with Mathematical Focus**:
68
+ Supports intelligent chatbot applications that require mathematical comprehension and dynamic response generation.
69
+
70
+ 4. **Data Science and Analytical Processing**:
71
+ Capable of analyzing mathematical datasets, generating structured numerical insights, and assisting with automation.
72
+
73
+ 5. **Long-Form Mathematical Content Generation**:
74
+ Can generate detailed problem breakdowns, mathematical reports, and research-based content with high coherence.
75
+
76
+ ## **Limitations**
77
+ 1. **Hardware Requirements**:
78
+ Requires high-memory GPUs or TPUs due to its large parameter size and long-context support.
79
+
80
+ 2. **Potential Bias in Responses**:
81
+ While fine-tuned for accuracy, outputs may still reflect biases present in training data.
82
+
83
+ 3. **Inconsistent Creative Outputs**:
84
+ May generate varying results when handling abstract or theoretical mathematical concepts.
85
+
86
+ 4. **Limited Real-World Awareness**:
87
+ Does not have access to real-time mathematical discoveries beyond its training cutoff.
88
+
89
+ 5. **Error Propagation in Extended Outputs**:
90
+ Minor calculation errors in early steps may affect overall problem solutions in long-form responses.
91
+
92
+ 6. **Prompt Sensitivity**:
93
+ The effectiveness of responses may depend on how well the mathematical problem is structured within the input prompt.