Upload README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,25 @@
|
|
1 |
-
---
|
2 |
-
license: apache-2.0
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
---
|
4 |
+
|
5 |
+
### 1. Model Details
|
6 |
+
Introducing xinchen9/llama3-b8-ft, an advanced language model comprising 8 billion parameters. It has been fine-trained based on
|
7 |
+
[meta-llama/Meta-Llama-3.1-8B](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B).
|
8 |
+
|
9 |
+
The llama3-b8 model was fine-tuning on dataset [CoT_ollection](https://huggingface.co/datasets/kaist-ai/CoT-Collection).
|
10 |
+
|
11 |
+
### 2. How to Use
|
12 |
+
Here give some examples of how to use our model.
|
13 |
+
#### Text Completion
|
14 |
+
```python
|
15 |
+
import torch
|
16 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
|
17 |
+
|
18 |
+
model_name = "xinchen9/Llama3.1_CoT"
|
19 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
20 |
+
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
|
21 |
+
model.generation_config = GenerationConfig.from_pretrained(model_name)
|
22 |
+
model.generation_config.pad_token_id = model.generation_config.eos_token_id
|
23 |
+
```
|
24 |
+
### 3 Disclaimer
|
25 |
+
The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please cosult an attorney before using this model for commercial purposes.
|