shouryashashank
commited on
Commit
•
d4cb3ea
1
Parent(s):
b66497f
Update README.md
Browse files
README.md
CHANGED
@@ -9,4 +9,100 @@ tags:
|
|
9 |
- 'reasoning '
|
10 |
- chain of thought
|
11 |
- problem solving
|
12 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
- 'reasoning '
|
10 |
- chain of thought
|
11 |
- problem solving
|
12 |
+
---
|
13 |
+
## Model Details
|
14 |
+
|
15 |
+
### Model Description
|
16 |
+
|
17 |
+
Precacons/Pico-Lamma-3.2-1B-Reasoning-Instruct
|
18 |
+
Model Overview: Precacons/Pico-Lamma-3.2-1B-Reasoning-Instruct is a highly efficient and accurate language model fine-tuned on the “meta-llama/Llama-3.2-1B-Instruct” base model. Despite its compact size of just 0.99GB, it delivers exceptional performance, particularly in tasks requiring logical reasoning and structured thought processes.
|
19 |
+
|
20 |
+
|
21 |
+
- **Developed by:** [Shourya Shashank](https://huggingface.co/shouryashashank)
|
22 |
+
- **Model type:** Transformer-based Language Model
|
23 |
+
- **Language(s) (NLP):** English
|
24 |
+
- **License:** AGPL-3.0
|
25 |
+
- **Finetuned from model [optional]:** meta-llama/Llama-3.2-1B-Instruct
|
26 |
+
|
27 |
+
|
28 |
+
#### Key Features:
|
29 |
+
|
30 |
+
* **Compact Size**: At only 0.99GB, it is lightweight and easy to deploy, making it suitable for environments with limited computational resources.
|
31 |
+
* **High Accuracy**: The model’s training on a specialized chain of thought and reasoning dataset enhances its ability to perform complex reasoning tasks with high precision.
|
32 |
+
* **Fine-Tuned on Meta-Llama**: Leveraging the robust foundation of the “meta-llama/Llama-3.2-1B-Instruct” model, it inherits strong language understanding and generation capabilities.
|
33 |
+
|
34 |
+
#### Applications:
|
35 |
+
|
36 |
+
* **Educational Tools**: Ideal for developing intelligent tutoring systems that require nuanced understanding and explanation of concepts.
|
37 |
+
* **Customer Support**: Enhances automated customer service systems by providing accurate and contextually relevant responses.
|
38 |
+
* **Research Assistance**: Assists researchers in generating hypotheses, summarizing findings, and exploring complex datasets.
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
## Uses
|
43 |
+
* Lightweight: The software is designed to be extremely lightweight, ensuring it can run efficiently on any system without requiring extensive resources.
|
44 |
+
* Natural Language Understanding: Ideal for applications requiring human-like text understanding and generation, such as chatbots, virtual assistants, and content generation tools.
|
45 |
+
* Small Size: Despite its compact size of just 0.99GB, it packs a powerful punch, making it easy to download and install.
|
46 |
+
* High Reliability: The reliability is significantly enhanced due to the chain-of-thought approach integrated into its design, ensuring consistent and accurate performance.
|
47 |
+
### Direct Use
|
48 |
+
|
49 |
+
* Problem Explanation: Generate detailed descriptions and reasoning for various problems, useful in educational contexts, customer support, and automated troubleshooting.
|
50 |
+
* Natural Language Understanding: Ideal for applications requiring human-like text understanding and generation, such as chatbots, virtual assistants, and content generation tools.
|
51 |
+
* Compact Deployment: Suitable for environments with limited computational resources due to its small size and 4-bit quantization.
|
52 |
+
|
53 |
+
|
54 |
+
### Downstream Use [optional]
|
55 |
+
|
56 |
+
* Educational Tools: Fine-tune the model on educational datasets to provide detailed explanations and reasoning for academic subjects.
|
57 |
+
* Customer Support: Fine-tune on customer service interactions to enhance automated support systems with accurate and context-aware responses.
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
+
## Bias, Risks, and Limitations
|
62 |
+
|
63 |
+
### Limitations
|
64 |
+
|
65 |
+
**Pico-Lamma-3.2-1B-Reasoning-Instruct** is a compact model designed for efficiency, but it comes with certain limitations:
|
66 |
+
|
67 |
+
3. **Limited Context Understanding**:
|
68 |
+
- With a smaller parameter size, the model may have limitations in understanding and generating contextually rich and nuanced responses compared to larger models.
|
69 |
+
|
70 |
+
4. **Bias and Fairness**:
|
71 |
+
- Like all language models, Pico-Lamma-3.2-1B-Reasoning-Instruct may exhibit biases present in the training data. Users should be cautious of potential biases in the generated outputs.
|
72 |
+
|
73 |
+
5. **Resource Constraints**:
|
74 |
+
- While the model is designed to be efficient, it still requires a GPU for optimal performance. Users with limited computational resources may experience slower inference times.
|
75 |
+
|
76 |
+
|
77 |
+
### Example Usage:
|
78 |
+
```python
|
79 |
+
import predacons
|
80 |
+
|
81 |
+
# Load the model and tokenizer
|
82 |
+
model_path = "Precacons/Pico-Lamma-3.2-1B-Reasoning-Instruct"
|
83 |
+
model = predacons.load_model(model_path)
|
84 |
+
tokenizer = predacons.load_tokenizer(model_path)
|
85 |
+
|
86 |
+
# Example usage
|
87 |
+
chat = [
|
88 |
+
{"role": "user", "content": "A train travelling at a speed of 60 km/hr is stopped in 15 seconds by applying the brakes. Determine its retardation."},
|
89 |
+
]
|
90 |
+
res = predacons.chat_generate(model = p_model,
|
91 |
+
sequence = chat,
|
92 |
+
max_length = 5000,
|
93 |
+
tokenizer = p_tokenizer,
|
94 |
+
trust_remote_code = True,
|
95 |
+
do_sample=True,
|
96 |
+
|
97 |
+
)
|
98 |
+
|
99 |
+
print(res)
|
100 |
+
```
|
101 |
+
|
102 |
+
This example demonstrates how to load the `Pico-Lamma-3.2-1B-Reasoning-Instruct` model and use it to generate an explanation for a given query, keeping in mind the limitations mentioned above.
|
103 |
+
|
104 |
+
|
105 |
+
|
106 |
+
## Model Card Authors [optional]
|
107 |
+
|
108 |
+
[Shourya Shashank](https://huggingface.co/shouryashashank)
|