Update README.md
Browse files
README.md
CHANGED
|
@@ -7,4 +7,22 @@ base_model:
|
|
| 7 |
pipeline_tag: text-generation
|
| 8 |
datasets:
|
| 9 |
- Salesforce/wikitext
|
| 10 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
pipeline_tag: text-generation
|
| 8 |
datasets:
|
| 9 |
- Salesforce/wikitext
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
## Usage
|
| 13 |
+
```
|
| 14 |
+
import torch
|
| 15 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 16 |
+
|
| 17 |
+
model_name = "ziyingchen1106/Llama-3.2-3B-Instruct-fp16-lora-wikitext"
|
| 18 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 19 |
+
model_name,
|
| 20 |
+
torch_dtype=torch.float16,
|
| 21 |
+
device_map="cuda:0"
|
| 22 |
+
)
|
| 23 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
## Attribution
|
| 27 |
+
- Built with Llama
|
| 28 |
+
- Llama 3.2 Community License © Meta Platforms, Inc.
|