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