Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -241,3 +241,20 @@ Output text:
|
|
| 241 |
It's worth noting that the specific diet of llamas can vary depending on factors such as the breed,
|
| 242 |
```
|
| 243 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 241 |
It's worth noting that the specific diet of llamas can vary depending on factors such as the breed,
|
| 242 |
```
|
| 243 |
|
| 244 |
+
|
| 245 |
+
**Pro tip**
|
| 246 |
+
|
| 247 |
+
Replace
|
| 248 |
+
|
| 249 |
+
```python
|
| 250 |
+
model.to(device)
|
| 251 |
+
```
|
| 252 |
+
|
| 253 |
+
with
|
| 254 |
+
|
| 255 |
+
```python
|
| 256 |
+
model = torch.compile(model)
|
| 257 |
+
model.to(device)
|
| 258 |
+
```
|
| 259 |
+
|
| 260 |
+
for a 4x speed-up (after the first `generate` call).
|