Update README.md
Browse files
README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
```
|
|
|
2 |
model_name,
|
3 |
low_cpu_mem_usage=True,
|
4 |
return_dict=True,
|
@@ -13,4 +14,5 @@ pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, do_sam
|
|
13 |
eos_token_id=tokenizer.eos_token_id,
|
14 |
max_length=1028, )
|
15 |
result = pipe(f"<s>[INST] {prompt} [/INST]")
|
16 |
-
print(result[0]['generated_text'])
|
|
|
|
1 |
+
```
|
2 |
+
model = AutoModelForCausalLM.from_pretrained(
|
3 |
model_name,
|
4 |
low_cpu_mem_usage=True,
|
5 |
return_dict=True,
|
|
|
14 |
eos_token_id=tokenizer.eos_token_id,
|
15 |
max_length=1028, )
|
16 |
result = pipe(f"<s>[INST] {prompt} [/INST]")
|
17 |
+
print(result[0]['generated_text'])
|
18 |
+
```
|