mohamedemam
commited on
Update README.md
Browse files
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-
|
136 |
-
base_model = AutoModelForCausalLM.from_pretrained("
|
137 |
-
model = PeftModel.from_pretrained(base_model, "mohamedemam/Em2-
|
138 |
-
tokenizer = AutoTokenizer.from_pretrained("mohamedemam/Em2-
|
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 |
```
|