|
Download README.md from darkB/quantum-qa-test-adapter: direct link, hf CLI and curl.
- Browser
- Download file 720 Bytes
-
https://huggingface.co/darkB/quantum-qa-test-adapter/resolve/main/README.md
- Command line
-
hf download hf://darkB/quantum-qa-test-adapter/README.md
-
curl -L -o README.md https://huggingface.co/darkB/quantum-qa-test-adapter/resolve/main/README.md
720 Bytes
| # PEFT Adapter for Quantum Computing QA | |
| PEFT adapter for Quantum Computing QA | |
| ## Model Description | |
| This is a PEFT adapter trained for quantum computing question-answering tasks. | |
| - **Base Model**: mistralai/Mistral-7B-Instruct-v0.3 | |
| - **Training Method**: LoRA | |
| - **Task**: Question Answering | |
| - **Domain**: Quantum Computing | |
| ## Usage | |
| ```python | |
| from peft import PeftModel, PeftConfig | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| # Load base model | |
| base_model = AutoModelForCausalLM.from_pretrained( | |
| "mistralai/Mistral-7B-Instruct-v0.3", | |
| device_map="auto", | |
| trust_remote_code=True | |
| ) | |
| # Load adapter | |
| model = PeftModel.from_pretrained( | |
| base_model, | |
| "darkB/quantum-qa-test-adapter" | |
| ) | |
| ``` | |