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