rasbt commited on
Commit
b984f18
·
verified ·
1 Parent(s): 5a3701d

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +17 -0
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).