QuixiAI/WizardLM_alpaca_evol_instruct_70k_unfiltered
Viewer • Updated • 55k • 205 • 147
How to use leafspark/WizardHermes-2-Pro-Llama-3-8b with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="leafspark/WizardHermes-2-Pro-Llama-3-8b")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("leafspark/WizardHermes-2-Pro-Llama-3-8b", device_map="auto")How to use leafspark/WizardHermes-2-Pro-Llama-3-8b with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M # Run inference directly in the terminal: llama cli -hf leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M # Run inference directly in the terminal: llama cli -hf leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M
docker model run hf.co/leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M
How to use leafspark/WizardHermes-2-Pro-Llama-3-8b with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "leafspark/WizardHermes-2-Pro-Llama-3-8b"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "leafspark/WizardHermes-2-Pro-Llama-3-8b",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M
How to use leafspark/WizardHermes-2-Pro-Llama-3-8b with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "leafspark/WizardHermes-2-Pro-Llama-3-8b" \
--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": "leafspark/WizardHermes-2-Pro-Llama-3-8b",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "leafspark/WizardHermes-2-Pro-Llama-3-8b" \
--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": "leafspark/WizardHermes-2-Pro-Llama-3-8b",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use leafspark/WizardHermes-2-Pro-Llama-3-8b with Ollama:
ollama run hf.co/leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M
How to use leafspark/WizardHermes-2-Pro-Llama-3-8b with Docker Model Runner:
docker model run hf.co/leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M
How to use leafspark/WizardHermes-2-Pro-Llama-3-8b with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull leafspark/WizardHermes-2-Pro-Llama-3-8b:Q4_K_M
lemonade run user.WizardHermes-2-Pro-Llama-3-8b-Q4_K_M
lemonade list
Finetuned from Meta-Llama-3-8b, 0.55 epoches
Merged with Hermes-2-Pro-Llama-3-8b
Eval (0.0 temp) (https://inflection.ai/assets/MMLU-Examples.pdf, 0-shot):
Hermes 2 Pro LoRA (merged) (checkpoint 1): 7/12
Hermes 2 Pro LoRA (merged) (checkpoint 2): 9/12
Hermes 2 Pro Llama 3 8b: 8/12
TruthfulQA (0-shot):
Hermes 2 Pro LoRA (merged) (checkpoint 2): 9/15
Hermes 2 Pro Llama 3 8b: 7/15
Trained using MonsterAPI
LoRA training parameters:
{
"deployment_name": "wizardlm-llama-3-8b",
"pretrainedmodel_config": {
"model_path": "meta-llama/Meta-Llama-3-8B",
"other_model_info": null,
"resume_checkpoint_path": "",
"use_lora": true,
"lora_r": 8,
"lora_alpha": 16,
"lora_dropout": 0,
"lora_bias": "none",
"use_quantization": false,
"use_gradient_checkpointing": false,
"parallelization": "nmp"
},
"data_config": {
"data_path": "cognitivecomputations/WizardLM_alpaca_evol_instruct_70k_unfiltered",
"data_subset": "default",
"data_source_type": "hub_link",
"cutoff_len": 4096,
"data_split_config": {
"train": 0.9,
"validation": 0.1
},
"prevalidated": true,
"concat_config": {
"0": {
"text": "Below is an instruction that describes a task. Write a response that appropriately completes the request. \n\n\n###Instruction:",
"column": false
},
"1": {
"text": "instruction",
"column": true
},
"2": {
"text": "\n\n\n###Response:",
"column": false
},
"3": {
"text": "output",
"column": true
}
}
},
"training_config": {
"early_stopping_patience": 5,
"num_train_epochs": 5,
"gradient_accumulation_steps": 1,
"warmup_steps": 300,
"learning_rate": 0.0005,
"lr_scheduler_type": "reduce_lr_on_plateau",
"group_by_length": false,
"use_hugging_face": false
},
"logging_config": {
"use_wandb": false,
"wandb_username": "",
"wandb_login_key": "",
"wandb_project": "",
"wandb_run_name": ""
},
"accessorytasks_config": {
"run_eval_report": false,
"run_quantize_merge": false
}
}
2-bit
3-bit
4-bit
6-bit
8-bit
16-bit