Instructions to use Trisert/falcon-7b-instruct-sharded with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Trisert/falcon-7b-instruct-sharded with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Trisert/falcon-7b-instruct-sharded", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Trisert/falcon-7b-instruct-sharded", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Trisert/falcon-7b-instruct-sharded with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Trisert/falcon-7b-instruct-sharded" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Trisert/falcon-7b-instruct-sharded", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Trisert/falcon-7b-instruct-sharded
- SGLang
How to use Trisert/falcon-7b-instruct-sharded 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 "Trisert/falcon-7b-instruct-sharded" \ --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": "Trisert/falcon-7b-instruct-sharded", "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 "Trisert/falcon-7b-instruct-sharded" \ --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": "Trisert/falcon-7b-instruct-sharded", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Trisert/falcon-7b-instruct-sharded with Docker Model Runner:
docker model run hf.co/Trisert/falcon-7b-instruct-sharded
[WIP] Upload folder using huggingface_hub (multi-commit 226699b348775cf1cf8b10206f491c4a87d94e610357d58b064c14ca455a2ba7)
#2
by Trisert - opened
Upload folder using huggingface_hub
Multi commit ID: 226699b348775cf1cf8b10206f491c4a87d94e610357d58b064c14ca455a2ba7
Scheduled commits:
- Upload 5 file(s) totalling 1.2G (18a306c9f3e1915956227685ef0f38419fe3fa006ac898982b5a18d8cbb93ec5)
- Upload 2 file(s) totalling 1.8G (96a22ce4bf6761b75875466c84877caa471f82db8cbe05a377450c201c0e79e8)
- Upload 2 file(s) totalling 1.7G (a94e4cb0954eef3f789c18f49dea9b3b884f4f2fb8556d9e4d4e4ac4047ef29f)
- Upload 2 file(s) totalling 1.7G (53936db3e37ff32b45c52432f7400f9404df180b70ca8ebe156f45ef2a683603)
- Upload 2 file(s) totalling 1.7G (1cb2033a842b437ded6158751c87e165f865c4ef1e90883c483458cc3ced82e6)
- Upload 2 file(s) totalling 1.7G (eb0a778badd703b77da7d94448e3eeb0ac1af7072209c7601e44b7c879631db0)
- Upload 2 file(s) totalling 1.7G (418152877997e60c8945fdd8019a5d1dc3effa3c157805a1c06aacec38b306b2)
- Upload 2 file(s) totalling 1.7G (2fd80e0f1ae7510d46dfa31f7d8ec703d3eb6806c1973fcfc7fa538850d48d1e)
- Upload 2 file(s) totalling 1.7G (d237d4867a728c7c04e41526c4f3dd189cc2748e96ad2a08fa4137f9f8ad3260)
- Upload 2 file(s) totalling 1.7G (3de2f74e1fefae16bcc8d592cc1838bfb5d72d45319c22fe6277e8de52b6a0a7)
- Upload 2 file(s) totalling 1.7G (58ccc97c6fc7f5aef6b460f4e78f0d45c76f8c2c99f53775c70e4731ec3f0c29)
- Upload 2 file(s) totalling 1.7G (d64f05bc32cf1327de79af79e7cd86609a9346ffe8612219914e7ca25495920d)
- Upload 2 file(s) totalling 1.7G (e13eb7077a5848cbfb32028bc59307fa7f877f236137dbe9d9f7f468fffc1239)
- Upload 2 file(s) totalling 1.7G (71cf14ccf680de48e81e4ab3d83043ca1535b8422b850a8646f1af2a3e41f191)
- Upload 2 file(s) totalling 1.7G (a4838c0ec454aadbf9bdd5ce7e5e4f855abbaccef155cda99e394f34cdfcbde3)
- Upload 2 file(s) totalling 1.7G (2c8f1bdf64eb0fec6ff5b1e50af7525ecbb3a1572fb6807b989ef337f187a259)
- Upload 6 file(s) totalling 1.5G (1d15e34890cfcf827ee34416131d89bd6d2c0853e7ed3816bc7298e796fd5d97)
This is a PR opened using the huggingface_hub library in the context of a multi-commit. PR can be commented as a usual PR. However, please be aware that manually updating the PR description, changing the PR status, or pushing new commits, is not recommended as it might corrupt the commit process. Learn more about multi-commits in this guide.