Instructions to use duyphu/8d1d62ef-b479-e4b6-f0f5-47e0c628a5fc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use duyphu/8d1d62ef-b479-e4b6-f0f5-47e0c628a5fc with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2-0.5B-Instruct") model = PeftModel.from_pretrained(base_model, "duyphu/8d1d62ef-b479-e4b6-f0f5-47e0c628a5fc") - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from duyphu/8d1d62ef-b479-e4b6-f0f5-47e0c628a5fc: direct link, hf CLI and curl.
- Browser
- Download file 728 Bytes
-
https://huggingface.co/duyphu/8d1d62ef-b479-e4b6-f0f5-47e0c628a5fc/resolve/1f6d2160d426f31d0f04a731c012de3c3d54ebfd/adapter_config.json
- Command line
-
hf download hf://duyphu/8d1d62ef-b479-e4b6-f0f5-47e0c628a5fc@1f6d2160d426f31d0f04a731c012de3c3d54ebfd/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/duyphu/8d1d62ef-b479-e4b6-f0f5-47e0c628a5fc/resolve/1f6d2160d426f31d0f04a731c012de3c3d54ebfd/adapter_config.json
728 Bytes
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "unsloth/Qwen2-0.5B-Instruct", | |
| "bias": "none", | |
| "fan_in_fan_out": null, | |
| "inference_mode": true, | |
| "init_lora_weights": true, | |
| "layer_replication": null, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 16, | |
| "lora_dropout": 0.05, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 8, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "down_proj", | |
| "q_proj", | |
| "o_proj", | |
| "up_proj", | |
| "gate_proj", | |
| "k_proj", | |
| "v_proj" | |
| ], | |
| "task_type": "CAUSAL_LM", | |
| "use_dora": false, | |
| "use_rslora": false | |
| } |