Update README.md
Browse files
README.md
CHANGED
@@ -18,6 +18,7 @@ model,tokenizer=load_model(model_name = XLoRa_model_name,
|
|
18 |
use_flash_attention_2=True,
|
19 |
dtype=torch.bfloat16,
|
20 |
)
|
|
|
21 |
```
|
22 |
|
23 |
```
|
@@ -60,9 +61,7 @@ Then, use as follows:
|
|
60 |
```
|
61 |
from IPython.display import display, Markdown
|
62 |
q='''What is graphene?'''
|
63 |
-
res=generate_XLoRA_Gemma( system_prompt='You design materials.',
|
64 |
-
prompt=q, max_new_tokens=1024, temperature=0.3, )
|
65 |
-
|
66 |
display (Markdown(res))
|
67 |
```
|
68 |
## Model Details
|
|
|
18 |
use_flash_attention_2=True,
|
19 |
dtype=torch.bfloat16,
|
20 |
)
|
21 |
+
eos_token_id= tokenizer('<end_of_turn>', add_special_tokens=False, ) ['input_ids'][0]
|
22 |
```
|
23 |
|
24 |
```
|
|
|
61 |
```
|
62 |
from IPython.display import display, Markdown
|
63 |
q='''What is graphene?'''
|
64 |
+
res=generate_XLoRA_Gemma( system_prompt='You design materials.', prompt=q, max_new_tokens=1024, temperature=0.3, eos_token=eos_token_id)
|
|
|
|
|
65 |
display (Markdown(res))
|
66 |
```
|
67 |
## Model Details
|