FrankL XiangJinYu commited on
Commit
5ffc703
·
verified ·
1 Parent(s): e979240

Update README.md (#1)

Browse files

- Update README.md (6b4212beee092a1afbaa85d00a1a6eb3e5406359)


Co-authored-by: Isaac <[email protected]>

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
+ ```