Upload folder using huggingface_hub
Browse files
README.md
CHANGED
@@ -15,12 +15,10 @@ This tiny model is for debugging. It is randomly initialized with the config ada
|
|
15 |
### Example usage:
|
16 |
|
17 |
```python
|
18 |
-
model_id = "tiny-random/smollm3"
|
19 |
-
|
20 |
import torch
|
21 |
-
|
22 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
23 |
|
|
|
24 |
device = "cuda" # for GPU usage or "cpu" for CPU usage
|
25 |
|
26 |
# load the tokenizer and the model
|
@@ -56,9 +54,8 @@ print(tokenizer.decode(output_ids, skip_special_tokens=True))
|
|
56 |
import json
|
57 |
from pathlib import Path
|
58 |
|
59 |
-
import torch
|
60 |
-
|
61 |
import accelerate
|
|
|
62 |
from huggingface_hub import file_exists, hf_hub_download
|
63 |
from transformers import (
|
64 |
AutoConfig,
|
|
|
15 |
### Example usage:
|
16 |
|
17 |
```python
|
|
|
|
|
18 |
import torch
|
|
|
19 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
20 |
|
21 |
+
model_id = "tiny-random/smollm3"
|
22 |
device = "cuda" # for GPU usage or "cpu" for CPU usage
|
23 |
|
24 |
# load the tokenizer and the model
|
|
|
54 |
import json
|
55 |
from pathlib import Path
|
56 |
|
|
|
|
|
57 |
import accelerate
|
58 |
+
import torch
|
59 |
from huggingface_hub import file_exists, hf_hub_download
|
60 |
from transformers import (
|
61 |
AutoConfig,
|