Instructions to use subset-data/falcon-7b-bt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use subset-data/falcon-7b-bt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="subset-data/falcon-7b-bt", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("subset-data/falcon-7b-bt", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use subset-data/falcon-7b-bt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "subset-data/falcon-7b-bt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "subset-data/falcon-7b-bt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/subset-data/falcon-7b-bt
- SGLang
How to use subset-data/falcon-7b-bt 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 "subset-data/falcon-7b-bt" \ --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": "subset-data/falcon-7b-bt", "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 "subset-data/falcon-7b-bt" \ --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": "subset-data/falcon-7b-bt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use subset-data/falcon-7b-bt with Docker Model Runner:
docker model run hf.co/subset-data/falcon-7b-bt
Download last-checkpoint/optimizer.pt from subset-data/falcon-7b-bt: direct link, hf CLI and curl.
- Browser
- Download file 1.04 GB
-
https://huggingface.co/subset-data/falcon-7b-bt/resolve/main/last-checkpoint/optimizer.pt
- Command line
-
hf download hf://subset-data/falcon-7b-bt/last-checkpoint/optimizer.pt
-
curl -L -o optimizer.pt https://huggingface.co/subset-data/falcon-7b-bt/resolve/main/last-checkpoint/optimizer.pt
1.04 GB
- Xet hash:
- 493f7b38b7ac49a9b81d408fe25f437bb8d9a2f1ece04bbc05837750807b1d86
- Size of remote file:
- 1.04 GB
- SHA256:
- 34cb32cdf3e1d0e60ca23d5d23951b535a228e9e80ae877f63309eb8711cb6aa
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.