Text Generation
Transformers
Safetensors
English
RefinedWeb
custom_code
text-generation-inference
4-bit precision
gptq
Instructions to use TheBloke/falcon-40b-instruct-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/falcon-40b-instruct-GPTQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/falcon-40b-instruct-GPTQ", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("TheBloke/falcon-40b-instruct-GPTQ", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheBloke/falcon-40b-instruct-GPTQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/falcon-40b-instruct-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/falcon-40b-instruct-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/falcon-40b-instruct-GPTQ
- SGLang
How to use TheBloke/falcon-40b-instruct-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/falcon-40b-instruct-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/falcon-40b-instruct-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/falcon-40b-instruct-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/falcon-40b-instruct-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/falcon-40b-instruct-GPTQ with Docker Model Runner:
docker model run hf.co/TheBloke/falcon-40b-instruct-GPTQ
CUDA extension not installed (even after manual compile and pip install)
1
#26 opened about 2 years ago
by
markemicek
GGUF format
#25 opened over 2 years ago
by
giladgd
TypeError: 'NoneType' object is not iterable in .../models_settings.py
#24 opened over 2 years ago
by
thinktink
Calibration dataset used to perform GPTQ
#23 opened almost 3 years ago
by
ht-rohit
A weird bug
11
#22 opened almost 3 years ago
by
XceptDev
Offloading to cpu not working?
1
#21 opened almost 3 years ago
by
fahadh4ilyas
May I ask why the GPTQ version is slow
👍 1
#20 opened almost 3 years ago
by
lynngao815
can you upload a falcon-40b-GPTQ?
2
#18 opened almost 3 years ago
by
Gian-hf
Update README.md
#17 opened almost 3 years ago
by
saattrupdan
OOM when running the simple code again in jupyter notebook
2
#16 opened almost 3 years ago
by
becks2000
Issues with Auto
3
#15 opened almost 3 years ago
by
Devonance
What is the different between GPTQ and QLoRA?
2
#12 opened about 3 years ago
by
Ichsan2895
error when loading sucessful and prompting simple text
19
#11 opened about 3 years ago
by
joseph3553
Custom 4-bit Finetuning 5-7 times faster inference than QLora
#7 opened about 3 years ago
by
rmihaylov
Error when attempting to run.. Appears model files are missing or configuration issue
20
#6 opened about 3 years ago
by
jdc4429
cuda extension not installed
👍 2
2
#5 opened about 3 years ago
by
becks2000
3bit quantization
1
#3 opened about 3 years ago
by deleted
GGML?
7
#2 opened about 3 years ago
by
creative420
Unfortunately I can't run on text-generation-webui
11
#1 opened about 3 years ago
by
Suoriks