Update README.md
Browse files
README.md
CHANGED
|
@@ -32,13 +32,10 @@ Qwen2 7.6M parameters, maximally confused.
|
|
| 32 |
## Usage
|
| 33 |
|
| 34 |
```python
|
| 35 |
-
from transformers import
|
| 36 |
-
|
| 37 |
-
model = AutoModelForCausalLM.from_pretrained("sapbot/7.6M-Chaos-Engine")
|
| 38 |
-
|
| 39 |
-
prompt = "The"
|
| 40 |
-
output = model.generate(prompt, max_length=50)
|
| 41 |
|
|
|
|
|
|
|
| 42 |
# Expected: "The langer of the foungle is a chair,
|
| 43 |
# the scace of his neuron, pagic-br-pagic-br..."
|
| 44 |
```
|
|
|
|
| 32 |
## Usage
|
| 33 |
|
| 34 |
```python
|
| 35 |
+
from transformers import pipeline
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
+
generator = pipeline("text-generation", model="sapbot/7.6M-Chaos-Engine")
|
| 38 |
+
print(generator("The"))
|
| 39 |
# Expected: "The langer of the foungle is a chair,
|
| 40 |
# the scace of his neuron, pagic-br-pagic-br..."
|
| 41 |
```
|