Instructions to use Sidharthkr/MPT_7B_sharded with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sidharthkr/MPT_7B_sharded with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sidharthkr/MPT_7B_sharded", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Sidharthkr/MPT_7B_sharded", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Sidharthkr/MPT_7B_sharded", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Sidharthkr/MPT_7B_sharded with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sidharthkr/MPT_7B_sharded" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sidharthkr/MPT_7B_sharded", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Sidharthkr/MPT_7B_sharded
- SGLang
How to use Sidharthkr/MPT_7B_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 "Sidharthkr/MPT_7B_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": "Sidharthkr/MPT_7B_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 "Sidharthkr/MPT_7B_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": "Sidharthkr/MPT_7B_sharded", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Sidharthkr/MPT_7B_sharded with Docker Model Runner:
docker model run hf.co/Sidharthkr/MPT_7B_sharded
Commit History
-
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (795ad74517dbed61c7282310a74a6e7145917076) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>22bb3ac
-
Upload pytorch_model-00033-of-00045.bin with huggingface_hub
4c8498f -
Upload pytorch_model-00012-of-00045.bin with huggingface_hub
d5f2c1d -
Upload pytorch_model-00026-of-00045.bin with huggingface_hub
bde9ad9 -
Upload pytorch_model-00028-of-00045.bin with huggingface_hub
3d98afe -
Upload pytorch_model-00042-of-00045.bin with huggingface_hub
aa75349 -
Upload pytorch_model-00010-of-00045.bin with huggingface_hub
6adec38 -
Upload pytorch_model-00008-of-00045.bin with huggingface_hub
bf76736 -
Upload pytorch_model-00013-of-00045.bin with huggingface_hub
74a7757 -
Upload pytorch_model-00043-of-00045.bin with huggingface_hub
b9c6192 -
Upload pytorch_model-00006-of-00045.bin with huggingface_hub
9e81fd4 -
Upload pytorch_model-00045-of-00045.bin with huggingface_hub
544f455 -
Upload config.json with huggingface_hub
8b7daf8 -
Upload pytorch_model-00020-of-00045.bin with huggingface_hub
0ec2c6c -
Upload pytorch_model-00001-of-00045.bin with huggingface_hub
62b51c5 -
Upload pytorch_model-00009-of-00045.bin with huggingface_hub
cc4edc0 -
Upload pytorch_model-00044-of-00045.bin with huggingface_hub
6d81ca8 -
Upload pytorch_model-00041-of-00045.bin with huggingface_hub
b4cebb9 -
Upload pytorch_model-00025-of-00045.bin with huggingface_hub
201b9e3 -
Upload generation_config.json with huggingface_hub
3264810 -
Upload pytorch_model-00031-of-00045.bin with huggingface_hub
5941980 -
Upload pytorch_model-00004-of-00045.bin with huggingface_hub
ac53e33 -
Upload pytorch_model-00005-of-00045.bin with huggingface_hub
f07bd18 -
Upload pytorch_model-00007-of-00045.bin with huggingface_hub
a016949 -
Upload pytorch_model-00039-of-00045.bin with huggingface_hub
7767dd5 -
Upload pytorch_model-00011-of-00045.bin with huggingface_hub
4d56b2e -
Upload pytorch_model-00027-of-00045.bin with huggingface_hub
5302394 -
Upload pytorch_model-00019-of-00045.bin with huggingface_hub
9bbc25c -
Upload pytorch_model-00036-of-00045.bin with huggingface_hub
212d0b9 -
Upload pytorch_model-00029-of-00045.bin with huggingface_hub
a473352 -
Upload pytorch_model-00017-of-00045.bin with huggingface_hub
019670c -
Upload pytorch_model-00014-of-00045.bin with huggingface_hub
62ba6c2 -
Upload pytorch_model-00024-of-00045.bin with huggingface_hub
4e5d461 -
Upload pytorch_model-00016-of-00045.bin with huggingface_hub
f484fcb -
Upload pytorch_model-00018-of-00045.bin with huggingface_hub
b8ad48c -
Upload pytorch_model.bin.index.json with huggingface_hub
b94e58b -
Upload pytorch_model-00038-of-00045.bin with huggingface_hub
338dbde -
Upload pytorch_model-00034-of-00045.bin with huggingface_hub
1338838 -
Upload pytorch_model-00032-of-00045.bin with huggingface_hub
7560771 -
Upload pytorch_model-00021-of-00045.bin with huggingface_hub
61a0f14 -
Upload pytorch_model-00003-of-00045.bin with huggingface_hub
ecb407e -
Upload pytorch_model-00022-of-00045.bin with huggingface_hub
e689a47 -
Upload pytorch_model-00002-of-00045.bin with huggingface_hub
7da10fc -
Upload pytorch_model-00037-of-00045.bin with huggingface_hub
3c9c083 -
Upload pytorch_model-00015-of-00045.bin with huggingface_hub
55f6edd -
Upload pytorch_model-00030-of-00045.bin with huggingface_hub
5896975 -
Upload pytorch_model-00035-of-00045.bin with huggingface_hub
8cb881a -
Upload pytorch_model-00040-of-00045.bin with huggingface_hub
a1bf593 -
Upload pytorch_model-00023-of-00045.bin with huggingface_hub
c114649 -
initial commit
beb5314