mohamedemam commited on
Commit
c2d685e
·
verified ·
1 Parent(s): e7ce087

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -132,10 +132,10 @@ By evaluating these factors, you can select a cloud service provider that aligns
132
  from peft import PeftModel, PeftConfig
133
  from transformers import AutoModelForCausalLM,AutoTokenizer
134
 
135
- config = PeftConfig.from_pretrained("mohamedemam/Em2-llama-7b")
136
- base_model = AutoModelForCausalLM.from_pretrained("NousResearch/Llama-2-7b-hf")
137
- model = PeftModel.from_pretrained(base_model, "mohamedemam/Em2-llama-7b")
138
- tokenizer = AutoTokenizer.from_pretrained("mohamedemam/Em2-llama-7b", trust_remote_code=True)
139
  pipe=MyPipeline(model,tokenizer)
140
  print(pipe(context,quetion,answer,generate=True,max_new_tokens=4, num_beams=2, do_sample=False,num_return_sequences=1))
141
  ```
 
132
  from peft import PeftModel, PeftConfig
133
  from transformers import AutoModelForCausalLM,AutoTokenizer
134
 
135
+ config = PeftConfig.from_pretrained("mohamedemam/Em2-bloomz-7b")
136
+ base_model = AutoModelForCausalLM.from_pretrained("mohamedemam/Em2-bloomz-7b")
137
+ model = PeftModel.from_pretrained(base_model, "mohamedemam/Em2-bloomz-7b")
138
+ tokenizer = AutoTokenizer.from_pretrained("mohamedemam/Em2-bloomz-7b", trust_remote_code=True)
139
  pipe=MyPipeline(model,tokenizer)
140
  print(pipe(context,quetion,answer,generate=True,max_new_tokens=4, num_beams=2, do_sample=False,num_return_sequences=1))
141
  ```