Update README.md
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ This is a runnable standalone huggingface implementation for one of the models.
|
|
| 11 |
Some trivial code to load the locally converted HF model + tokenizer and
|
| 12 |
run a tiny generation.
|
| 13 |
|
| 14 |
-
|
| 15 |
import torch
|
| 16 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 17 |
|
|
@@ -42,7 +42,7 @@ if __name__ == "__main__":
|
|
| 42 |
print(PROMPT)
|
| 43 |
print("\n=== Generation ===")
|
| 44 |
print(tok.decode(out[0], skip_special_tokens=True))
|
| 45 |
-
|
| 46 |
|
| 47 |
|
| 48 |
## License
|
|
|
|
| 11 |
Some trivial code to load the locally converted HF model + tokenizer and
|
| 12 |
run a tiny generation.
|
| 13 |
|
| 14 |
+
```
|
| 15 |
import torch
|
| 16 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 17 |
|
|
|
|
| 42 |
print(PROMPT)
|
| 43 |
print("\n=== Generation ===")
|
| 44 |
print(tok.decode(out[0], skip_special_tokens=True))
|
| 45 |
+
```
|
| 46 |
|
| 47 |
|
| 48 |
## License
|