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