ZJU-Fangyin
commited on
Commit
·
8c5aa7c
1
Parent(s):
4e88d8a
Update README.md
Browse files
README.md
CHANGED
@@ -88,6 +88,25 @@ Instructions for running it can be found at https://github.com/zjunlp/Mol-Instru
|
|
88 |
</details>
|
89 |
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
|
92 |
<h3> 🚨 Limitations</h3>
|
93 |
|
|
|
88 |
</details>
|
89 |
|
90 |
|
91 |
+
<h3> Demo</h3>
|
92 |
+
|
93 |
+
As illustrated in [our repository](https://github.com/zjunlp/Mol-Instructions/tree/main/demo), we provide an example to perform generation.
|
94 |
+
|
95 |
+
```shell
|
96 |
+
>> python generate.py \
|
97 |
+
--CLI True \
|
98 |
+
--protein False\
|
99 |
+
--load_8bit \
|
100 |
+
--base_model $BASE_MODEL_PATH \
|
101 |
+
--lora_weights $FINETUNED_MODEL_PATH \
|
102 |
+
```
|
103 |
+
|
104 |
+
Please download [llama-7b-hf](https://huggingface.co/decapoda-research/llama-7b-hf/tree/main) to obtain the pre-training weights of LLaMA-7B, refine the `--base_model` to point towards the location where the model weights are saved.
|
105 |
+
|
106 |
+
For model fine-tuned on **biomolecular text** instructions, set `$FINETUNED_MODEL_PATH` to `'zjunlp/llama-molinst-biotext-7b'`.
|
107 |
+
|
108 |
+
|
109 |
+
|
110 |
|
111 |
<h3> 🚨 Limitations</h3>
|
112 |
|