bryanmildort commited on
Commit
680b3f7
·
1 Parent(s): d94dfde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,10 +21,10 @@ st.write(device_str)
21
  device_map = infer_auto_device_map(model, dtype="float16")
22
  st.write(device_map)
23
 
24
- # tokenizer = AutoTokenizer.from_pretrained("bryanmildort/gpt-clinical-notes-summarizer")
25
  # model = AutoModelForCausalLM.from_pretrained("bryanmildort/gpt-clinical-notes-summarizer", load_in_8bit=True, device_map="auto")
26
  # model = model.to(device)
27
 
 
28
  checkpoint = "bryanmildort/gpt-notes-summarizer-demo"
29
  model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", offload_folder="offload", offload_state_dict = True, no_split_module_classes=["GPTJBlock"], torch_dtype=torch.float16)
30
 
 
21
  device_map = infer_auto_device_map(model, dtype="float16")
22
  st.write(device_map)
23
 
 
24
  # model = AutoModelForCausalLM.from_pretrained("bryanmildort/gpt-clinical-notes-summarizer", load_in_8bit=True, device_map="auto")
25
  # model = model.to(device)
26
 
27
+ tokenizer = AutoTokenizer.from_pretrained("bryanmildort/gpt-clinical-notes-summarizer")
28
  checkpoint = "bryanmildort/gpt-notes-summarizer-demo"
29
  model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", offload_folder="offload", offload_state_dict = True, no_split_module_classes=["GPTJBlock"], torch_dtype=torch.float16)
30