Instructions to use ealharbi/crystallography-cryoem-mistral-7b-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ealharbi/crystallography-cryoem-mistral-7b-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3") model = PeftModel.from_pretrained(base_model, "ealharbi/crystallography-cryoem-mistral-7b-lora") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -46,7 +46,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 46 |
tok = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
|
| 47 |
model = AutoModelForCausalLM.from_pretrained(
|
| 48 |
"mistralai/Mistral-7B-Instruct-v0.3", device_map="auto", dtype="bfloat16")
|
| 49 |
-
model = PeftModel.from_pretrained(model, "ealharbi/
|
| 50 |
```
|
| 51 |
|
| 52 |
The system prompt used in training was:
|
|
|
|
| 46 |
tok = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
|
| 47 |
model = AutoModelForCausalLM.from_pretrained(
|
| 48 |
"mistralai/Mistral-7B-Instruct-v0.3", device_map="auto", dtype="bfloat16")
|
| 49 |
+
model = PeftModel.from_pretrained(model, "ealharbi/crystallography-cryoem-mistral-7b-lora")
|
| 50 |
```
|
| 51 |
|
| 52 |
The system prompt used in training was:
|