linjc16 commited on
Commit
74b490c
1 Parent(s): 3eda305

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -23,11 +23,11 @@ Panacea is trained from [Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistr
23
 
24
  Load the model in the following way (same as Mistral):
25
 
26
- ```[python]
27
  from transformers import AutoModelForCausalLM, AutoTokenizer
28
  import torch
29
 
30
  model_id = 'linjc16/Panacea-7B-Chat'
31
 
32
- model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto", cache_dir="/data/jl254/cache/")
33
  tokenizer = AutoTokenizer.from_pretrained(model_id)
 
23
 
24
  Load the model in the following way (same as Mistral):
25
 
26
+ ```python
27
  from transformers import AutoModelForCausalLM, AutoTokenizer
28
  import torch
29
 
30
  model_id = 'linjc16/Panacea-7B-Chat'
31
 
32
+ model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
33
  tokenizer = AutoTokenizer.from_pretrained(model_id)