Instructions to use AlissenMoreno61/wizard-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AlissenMoreno61/wizard-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2-0.5B-Instruct") model = PeftModel.from_pretrained(base_model, "AlissenMoreno61/wizard-lora") - Transformers
How to use AlissenMoreno61/wizard-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AlissenMoreno61/wizard-lora") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AlissenMoreno61/wizard-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AlissenMoreno61/wizard-lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AlissenMoreno61/wizard-lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AlissenMoreno61/wizard-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AlissenMoreno61/wizard-lora
- SGLang
How to use AlissenMoreno61/wizard-lora with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "AlissenMoreno61/wizard-lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AlissenMoreno61/wizard-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "AlissenMoreno61/wizard-lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AlissenMoreno61/wizard-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AlissenMoreno61/wizard-lora with Docker Model Runner:
docker model run hf.co/AlissenMoreno61/wizard-lora
Upload folder using huggingface_hub
Browse files- adapter_config.json +7 -4
- adapter_model.safetensors +2 -2
adapter_config.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"layers_pattern": null,
|
| 14 |
"layers_to_transform": null,
|
| 15 |
"loftq_config": {},
|
| 16 |
-
"lora_alpha":
|
| 17 |
"lora_bias": false,
|
| 18 |
"lora_dropout": 0.05,
|
| 19 |
"megatron_config": null,
|
|
@@ -21,14 +21,17 @@
|
|
| 21 |
"modules_to_save": null,
|
| 22 |
"peft_type": "LORA",
|
| 23 |
"qalora_group_size": 16,
|
| 24 |
-
"r":
|
| 25 |
"rank_pattern": {},
|
| 26 |
"revision": null,
|
| 27 |
"target_modules": [
|
| 28 |
-
"
|
| 29 |
"k_proj",
|
| 30 |
"o_proj",
|
| 31 |
-
"
|
|
|
|
|
|
|
|
|
|
| 32 |
],
|
| 33 |
"target_parameters": null,
|
| 34 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 13 |
"layers_pattern": null,
|
| 14 |
"layers_to_transform": null,
|
| 15 |
"loftq_config": {},
|
| 16 |
+
"lora_alpha": 64,
|
| 17 |
"lora_bias": false,
|
| 18 |
"lora_dropout": 0.05,
|
| 19 |
"megatron_config": null,
|
|
|
|
| 21 |
"modules_to_save": null,
|
| 22 |
"peft_type": "LORA",
|
| 23 |
"qalora_group_size": 16,
|
| 24 |
+
"r": 32,
|
| 25 |
"rank_pattern": {},
|
| 26 |
"revision": null,
|
| 27 |
"target_modules": [
|
| 28 |
+
"gate_proj",
|
| 29 |
"k_proj",
|
| 30 |
"o_proj",
|
| 31 |
+
"v_proj",
|
| 32 |
+
"q_proj",
|
| 33 |
+
"up_proj",
|
| 34 |
+
"down_proj"
|
| 35 |
],
|
| 36 |
"target_parameters": null,
|
| 37 |
"task_type": "CAUSAL_LM",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7f17a17ef071e1bbd82c2dae53734a1c541c26108c467b9b741b5878e82a7ba
|
| 3 |
+
size 70430032
|