Text Generation
PEFT
Safetensors
Spanish
English
bittensor
subnet-20
LoRA
fine-tune
phi-2
antonio-bfcl
rogue-tensor
artificial-intelligence
open-source
Instructions to use Tonit23/antonio-phi2-bitagent-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Tonit23/antonio-phi2-bitagent-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2") model = PeftModel.from_pretrained(base_model, "Tonit23/antonio-phi2-bitagent-lora") - Notebooks
- Google Colab
- Kaggle
Add missing peft_task_type for Hugging Face parsing
Browse files- adapter_config.json +1 -0
adapter_config.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"alpha_pattern": {},
|
| 3 |
"auto_mapping": {
|
| 4 |
"base_model_class": "PhiForCausalLM",
|
|
|
|
| 1 |
{
|
| 2 |
+
"peft_task_type": "CAUSAL_LM",
|
| 3 |
"alpha_pattern": {},
|
| 4 |
"auto_mapping": {
|
| 5 |
"base_model_class": "PhiForCausalLM",
|