Update README.md
Browse files
README.md
CHANGED
|
@@ -22,7 +22,6 @@ This repo contains the instruction-tuned 7B OmniChem model, which has the follow
|
|
| 22 |
* **Context Length**: Supports up to 128K tokens
|
| 23 |
* **License**: CC BY-NC-SA 4.0 (for academic, non-commercial use)
|
| 24 |
|
| 25 |
-
For more details, please refer to our **[Paper](Link to your paper)** and **[Project GitHub](Link to your GitHub)**.
|
| 26 |
|
| 27 |
### Requirements
|
| 28 |
|
|
@@ -37,8 +36,7 @@ Here is a code snippet showing how to load the OmniChem model and tokenizer to g
|
|
| 37 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 38 |
import torch
|
| 39 |
|
| 40 |
-
|
| 41 |
-
model_name = "YourUsername/OmniChem-7B-Instruct"
|
| 42 |
|
| 43 |
model = AutoModelForCausalLM.from_pretrained(
|
| 44 |
model_name,
|
|
@@ -50,7 +48,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
| 50 |
# Example prompt for a chemistry task
|
| 51 |
prompt = "Plan a synthetic route for the small molecule drug lidocaine."
|
| 52 |
messages = [
|
| 53 |
-
{"role": "system", "content": "You are
|
| 54 |
{"role": "user", "content": prompt}
|
| 55 |
]
|
| 56 |
|
|
@@ -87,4 +85,6 @@ To handle extensive inputs exceeding 32,768 tokens, we utilize YaRN, a technique
|
|
| 87 |
"type": "yarn"
|
| 88 |
}
|
| 89 |
}
|
| 90 |
-
```
|
|
|
|
|
|
|
|
|
| 22 |
* **Context Length**: Supports up to 128K tokens
|
| 23 |
* **License**: CC BY-NC-SA 4.0 (for academic, non-commercial use)
|
| 24 |
|
|
|
|
| 25 |
|
| 26 |
### Requirements
|
| 27 |
|
|
|
|
| 36 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 37 |
import torch
|
| 38 |
|
| 39 |
+
model_name = "YourUsername/OmniChem-7B-v1"
|
|
|
|
| 40 |
|
| 41 |
model = AutoModelForCausalLM.from_pretrained(
|
| 42 |
model_name,
|
|
|
|
| 48 |
# Example prompt for a chemistry task
|
| 49 |
prompt = "Plan a synthetic route for the small molecule drug lidocaine."
|
| 50 |
messages = [
|
| 51 |
+
{"role": "system", "content": "You are a chemistry expert. Your task is to answer the user's problem using the most academic and rigorous professor-level language in a structured format. Think step by step."},
|
| 52 |
{"role": "user", "content": prompt}
|
| 53 |
]
|
| 54 |
|
|
|
|
| 85 |
"type": "yarn"
|
| 86 |
}
|
| 87 |
}
|
| 88 |
+
```
|
| 89 |
+
### License
|
| 90 |
+
This model is licensed under CC BY-NC-SA 4.0 for non-commercial use. Commercial use requires explicit permission. Contact [[email protected]] for inquiries.
|