Instructions to use TheBloke/Falcon-180B-Chat-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/Falcon-180B-Chat-GPTQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/Falcon-180B-Chat-GPTQ")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TheBloke/Falcon-180B-Chat-GPTQ") model = AutoModelForCausalLM.from_pretrained("TheBloke/Falcon-180B-Chat-GPTQ") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use TheBloke/Falcon-180B-Chat-GPTQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/Falcon-180B-Chat-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-180B-Chat-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/Falcon-180B-Chat-GPTQ
- SGLang
How to use TheBloke/Falcon-180B-Chat-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-180B-Chat-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-180B-Chat-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-180B-Chat-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-180B-Chat-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/Falcon-180B-Chat-GPTQ with Docker Model Runner:
docker model run hf.co/TheBloke/Falcon-180B-Chat-GPTQ
ModuleNotFoundError: No module named 'optimum'
#9 opened over 2 years ago
by
netranga
Model card parameters
1
#8 opened over 2 years ago
by
amartino
Model outputs 1 word or letter ("I", "Hey")
#7 opened over 2 years ago
by
fanwave-rr
very slow inference speed on 2x A100 80GB with 4-bit (main branch)
#6 opened over 2 years ago
by
willowill5
AttributeError: 'FalconForCausalLM' object has no attribute 'device_to_buffers
#5 opened over 2 years ago
by
yuchenlin
Can run on SageMaker g5 instance?
5
#4 opened over 2 years ago
by
nsegev
3bit on single A100 good quality, poor speed
3
#3 opened over 2 years ago
by
Gian-hf
Brilliant!
15
#1 opened over 2 years ago
by
jlnbsdfkjlnvksldfjvb