Text Generation
Transformers
Safetensors
English
llama
text-generation-inference
4-bit precision
gptq
Instructions to use TheBloke/based-7B-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/based-7B-GPTQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/based-7B-GPTQ")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TheBloke/based-7B-GPTQ") model = AutoModelForCausalLM.from_pretrained("TheBloke/based-7B-GPTQ", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheBloke/based-7B-GPTQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/based-7B-GPTQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBloke/based-7B-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/based-7B-GPTQ
- SGLang
How to use TheBloke/based-7B-GPTQ 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 "TheBloke/based-7B-GPTQ" \ --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": "TheBloke/based-7B-GPTQ", "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 "TheBloke/based-7B-GPTQ" \ --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": "TheBloke/based-7B-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/based-7B-GPTQ with Docker Model Runner:
docker model run hf.co/TheBloke/based-7B-GPTQ
Commit History
-
Update base_model formatting
87c8461
-
Upload README.md
e591bb3 -
Upload README.md
c8181db
-
Upload README.md
757b5b2 -
Upload README.md
1b70f92
-
Update for Transformers GPTQ support
925b5bf
-
Initial GPTQ model commit
43fc3b2 -
Initial GPTQ model commit
beb00a1 -
Initial GPTQ model commit
47b15ee -
Initial GPTQ model commit
d1a81a6 -
Initial GPTQ model commit
17f20a9 -
Initial GPTQ model commit
ffe44e1 -
Initial GPTQ model commit
c30a544 -
Initial GPTQ model commit
61266dc -
Initial GPTQ model commit
dd97872 -
Initial GPTQ model commit
c163d00 -
Initial GPTQ model commit
dc12166 -
Initial GPTQ model commit
233fd8f -
Initial GPTQ model commit
9879627 -
Initial GPTQ model commit
1e23ed5 -
Initial GPTQ model commit
5e0890b -
Initial GPTQ model commit
1ea9940 -
Initial GPTQ model commit
adef538 -
Initial GPTQ model commit
94c4718 -
Initial GPTQ model commit
f5ed17c -
Initial GPTQ model commit
69fe429 -
Update README.md
938d572
-
Update README.md
a809246 -
Initial GPTQ model commit
6efaf8d -
Initial GPTQ model commit
85e495a -
Initial GPTQ model commit
b81fbab -
Initial GPTQ model commit
5d22d72 -
Initial GPTQ model commit
6822d6b -
Initial GPTQ model commit
10e5dc5 -
Initial GPTQ model commit
6863d8c -
Initial GPTQ model commit
48a18ef -
Initial GPTQ model commit
f52441c -
initial commit
536d891