Instructions to use Muhammadidrees/LLMSZEPHYRFT2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Muhammadidrees/LLMSZEPHYRFT2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceH4/zephyr-7b-beta") model = PeftModel.from_pretrained(base_model, "Muhammadidrees/LLMSZEPHYRFT2") - Transformers
How to use Muhammadidrees/LLMSZEPHYRFT2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Muhammadidrees/LLMSZEPHYRFT2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Muhammadidrees/LLMSZEPHYRFT2", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Muhammadidrees/LLMSZEPHYRFT2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Muhammadidrees/LLMSZEPHYRFT2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Muhammadidrees/LLMSZEPHYRFT2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Muhammadidrees/LLMSZEPHYRFT2
- SGLang
How to use Muhammadidrees/LLMSZEPHYRFT2 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 "Muhammadidrees/LLMSZEPHYRFT2" \ --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": "Muhammadidrees/LLMSZEPHYRFT2", "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 "Muhammadidrees/LLMSZEPHYRFT2" \ --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": "Muhammadidrees/LLMSZEPHYRFT2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Muhammadidrees/LLMSZEPHYRFT2 with Docker Model Runner:
docker model run hf.co/Muhammadidrees/LLMSZEPHYRFT2
Update adapter_config.json
Browse files- adapter_config.json +38 -38
adapter_config.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
| 1 |
-
{
|
| 2 |
-
"alpha_pattern": {},
|
| 3 |
-
"auto_mapping": null,
|
| 4 |
-
"base_model_name_or_path": "
|
| 5 |
-
"bias": "none",
|
| 6 |
-
"corda_config": null,
|
| 7 |
-
"eva_config": null,
|
| 8 |
-
"exclude_modules": null,
|
| 9 |
-
"fan_in_fan_out": false,
|
| 10 |
-
"inference_mode": true,
|
| 11 |
-
"init_lora_weights": true,
|
| 12 |
-
"layer_replication": null,
|
| 13 |
-
"layers_pattern": null,
|
| 14 |
-
"layers_to_transform": null,
|
| 15 |
-
"loftq_config": {},
|
| 16 |
-
"lora_alpha": 16,
|
| 17 |
-
"lora_bias": false,
|
| 18 |
-
"lora_dropout": 0.05,
|
| 19 |
-
"megatron_config": null,
|
| 20 |
-
"megatron_core": "megatron.core",
|
| 21 |
-
"modules_to_save": null,
|
| 22 |
-
"peft_type": "LORA",
|
| 23 |
-
"qalora_group_size": 16,
|
| 24 |
-
"r": 8,
|
| 25 |
-
"rank_pattern": {},
|
| 26 |
-
"revision": null,
|
| 27 |
-
"target_modules": [
|
| 28 |
-
"q_proj",
|
| 29 |
-
"o_proj",
|
| 30 |
-
"k_proj",
|
| 31 |
-
"v_proj"
|
| 32 |
-
],
|
| 33 |
-
"target_parameters": null,
|
| 34 |
-
"task_type": "CAUSAL_LM",
|
| 35 |
-
"trainable_token_indices": null,
|
| 36 |
-
"use_dora": false,
|
| 37 |
-
"use_qalora": false,
|
| 38 |
-
"use_rslora": false
|
| 39 |
}
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "HuggingFaceH4/zephyr-7b-beta",
|
| 5 |
+
"bias": "none",
|
| 6 |
+
"corda_config": null,
|
| 7 |
+
"eva_config": null,
|
| 8 |
+
"exclude_modules": null,
|
| 9 |
+
"fan_in_fan_out": false,
|
| 10 |
+
"inference_mode": true,
|
| 11 |
+
"init_lora_weights": true,
|
| 12 |
+
"layer_replication": null,
|
| 13 |
+
"layers_pattern": null,
|
| 14 |
+
"layers_to_transform": null,
|
| 15 |
+
"loftq_config": {},
|
| 16 |
+
"lora_alpha": 16,
|
| 17 |
+
"lora_bias": false,
|
| 18 |
+
"lora_dropout": 0.05,
|
| 19 |
+
"megatron_config": null,
|
| 20 |
+
"megatron_core": "megatron.core",
|
| 21 |
+
"modules_to_save": null,
|
| 22 |
+
"peft_type": "LORA",
|
| 23 |
+
"qalora_group_size": 16,
|
| 24 |
+
"r": 8,
|
| 25 |
+
"rank_pattern": {},
|
| 26 |
+
"revision": null,
|
| 27 |
+
"target_modules": [
|
| 28 |
+
"q_proj",
|
| 29 |
+
"o_proj",
|
| 30 |
+
"k_proj",
|
| 31 |
+
"v_proj"
|
| 32 |
+
],
|
| 33 |
+
"target_parameters": null,
|
| 34 |
+
"task_type": "CAUSAL_LM",
|
| 35 |
+
"trainable_token_indices": null,
|
| 36 |
+
"use_dora": false,
|
| 37 |
+
"use_qalora": false,
|
| 38 |
+
"use_rslora": false
|
| 39 |
}
|