XiangJinYu commited on
Commit
6b4212b
1 Parent(s): e979240

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -1
README.md CHANGED
@@ -20,6 +20,8 @@ This is the model card of a 🤗 transformers model that has been pushed on the
20
 
21
 
22
  ### Direct Use
 
 
23
  model = AutoModel.from_pretrained('FrankL/storytellerLM-v0', trust_remote_code=True, torch_dtype=torch.float16)
24
  model = model.to(device='cuda')
25
 
@@ -47,4 +49,5 @@ def inference(
47
  # print(outputs)
48
  print(generated_text)
49
 
50
- inference(model, tokenizer)
 
 
20
 
21
 
22
  ### Direct Use
23
+
24
+ ```python
25
  model = AutoModel.from_pretrained('FrankL/storytellerLM-v0', trust_remote_code=True, torch_dtype=torch.float16)
26
  model = model.to(device='cuda')
27
 
 
49
  # print(outputs)
50
  print(generated_text)
51
 
52
+ inference(model, tokenizer)
53
+ ```