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