prithivMLmods commited on
Commit
1ea2d5a
·
verified ·
1 Parent(s): 02a88df

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -1
README.md CHANGED
@@ -11,4 +11,35 @@ tags:
11
  ---
12
  # **Llama-3.2-3B-Math-Oct**
13
 
14
- Llama-3.2-3B-Math-Oct is a math role-play model designed to solve mathematical problems and enhance the reasoning capabilities of 3B-parameter models. These models have proven highly effective in context understanding, reasoning, and mathematical problem-solving, based on the Llama 3.2 architecture.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
  # **Llama-3.2-3B-Math-Oct**
13
 
14
+ Llama-3.2-3B-Math-Oct is a math role-play model designed to solve mathematical problems and enhance the reasoning capabilities of 3B-parameter models. These models have proven highly effective in context understanding, reasoning, and mathematical problem-solving, based on the Llama 3.2 architecture.
15
+
16
+
17
+ # **Use with transformers**
18
+
19
+ Starting with `transformers >= 4.43.0` onward, you can run conversational inference using the Transformers `pipeline` abstraction or by leveraging the Auto classes with the `generate()` function.
20
+
21
+ Make sure to update your transformers installation via `pip install --upgrade transformers`.
22
+
23
+ ```python
24
+ import torch
25
+ from transformers import pipeline
26
+
27
+ model_id = "meta-llama/Llama-3.2-3B-Instruct"
28
+ pipe = pipeline(
29
+ "text-generation",
30
+ model=model_id,
31
+ torch_dtype=torch.bfloat16,
32
+ device_map="auto",
33
+ )
34
+ messages = [
35
+ {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
36
+ {"role": "user", "content": "Who are you?"},
37
+ ]
38
+ outputs = pipe(
39
+ messages,
40
+ max_new_tokens=256,
41
+ )
42
+ print(outputs[0]["generated_text"][-1])
43
+ ```
44
+
45
+ Note: You can also find detailed recipes on how to use the model locally, with `torch.compile()`, assisted generations, quantised and more at [`huggingface-llama-recipes`](https://github.com/huggingface/huggingface-llama-recipes)