Instructions to use CalderaAI/30B-Lazarus-GPTQ4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CalderaAI/30B-Lazarus-GPTQ4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CalderaAI/30B-Lazarus-GPTQ4bit")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CalderaAI/30B-Lazarus-GPTQ4bit") model = AutoModelForCausalLM.from_pretrained("CalderaAI/30B-Lazarus-GPTQ4bit") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CalderaAI/30B-Lazarus-GPTQ4bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CalderaAI/30B-Lazarus-GPTQ4bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CalderaAI/30B-Lazarus-GPTQ4bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CalderaAI/30B-Lazarus-GPTQ4bit
- SGLang
How to use CalderaAI/30B-Lazarus-GPTQ4bit 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 "CalderaAI/30B-Lazarus-GPTQ4bit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CalderaAI/30B-Lazarus-GPTQ4bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "CalderaAI/30B-Lazarus-GPTQ4bit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CalderaAI/30B-Lazarus-GPTQ4bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CalderaAI/30B-Lazarus-GPTQ4bit with Docker Model Runner:
docker model run hf.co/CalderaAI/30B-Lazarus-GPTQ4bit
Can you please provide the quantize_config.json file?
I am able to load and run the GPTQ version in the text-generation-webui, but when I try to run lm-evaluation-harness, I receive an error message indicating that the file or directory "quantize_config.json" does not exist. Could you please provide me with this file so that I can perform the necessary testing? Thank you.
This one is for 0cc4m's KoboldAI fork so we have no quantize_config.json, from the filename I can deduct 4-bit with no groupsize was used if that helps.
As there is not qunatize_config.json, can you provide us some sample code on how to load it then?
For example, the quantize_config.json in TheBloke/Nous-Hermes-13B-GPTQ:
{
"bits": 4,
"group_size": 128,
"damp_percent": 0.01,
"desc_act": false,
"sym": true,
"true_sequential": true
}
TheBloke/guanaco-65B-GPTQ:
{
"bits": 4,
"group_size": -1,
"damp_percent": 0.01,
"desc_act": true,
"sym": true,
"true_sequential": true
}
I'm uncertain if this file was manually created or automatically generated using a quantization tool. Thx
Haven't myself, but have you tried this one yet? Mentioned compatible with Text-Generation-UI
