Instructions to use leaf0788/structeval-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leaf0788/structeval-lora with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("leaf0788/structeval-lora", device_map="auto") - PEFT
How to use leaf0788/structeval-lora with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -33,7 +33,8 @@ from peft import PeftModel
|
|
| 33 |
BASE_MODEL = "Qwen/Qwen3-4B-Instruct-2507"
|
| 34 |
ADAPTER_REPO = "leaf0788/structeval-lora"
|
| 35 |
|
| 36 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
|
|
|
| 37 |
|
| 38 |
base = AutoModelForCausalLM.from_pretrained(
|
| 39 |
BASE_MODEL,
|
|
|
|
| 33 |
BASE_MODEL = "Qwen/Qwen3-4B-Instruct-2507"
|
| 34 |
ADAPTER_REPO = "leaf0788/structeval-lora"
|
| 35 |
|
| 36 |
+
tokenizer = AutoTokenizer.from_pretrained(BASE_MODEL, trust_remote_code=True)
|
| 37 |
+
|
| 38 |
|
| 39 |
base = AutoModelForCausalLM.from_pretrained(
|
| 40 |
BASE_MODEL,
|