Instructions to use normalcomputing/extended-mind-mpt-30b-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use normalcomputing/extended-mind-mpt-30b-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="normalcomputing/extended-mind-mpt-30b-chat", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("normalcomputing/extended-mind-mpt-30b-chat", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use normalcomputing/extended-mind-mpt-30b-chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "normalcomputing/extended-mind-mpt-30b-chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "normalcomputing/extended-mind-mpt-30b-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/normalcomputing/extended-mind-mpt-30b-chat
- SGLang
How to use normalcomputing/extended-mind-mpt-30b-chat 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 "normalcomputing/extended-mind-mpt-30b-chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "normalcomputing/extended-mind-mpt-30b-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "normalcomputing/extended-mind-mpt-30b-chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "normalcomputing/extended-mind-mpt-30b-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use normalcomputing/extended-mind-mpt-30b-chat with Docker Model Runner:
docker model run hf.co/normalcomputing/extended-mind-mpt-30b-chat
Commit History
-
Update README.md
Verified signature4b4cf26 -
Update README.md
Verified signaturebc42c72
-
Upload 2 files
Verified signature1748dc3 -
Update modeling.py
Verified signaturec04fa98 -
Update configuration.py
Verified signature0269e9f -
Upload 2 files
Verified signaturee456ed0 -
Update config.json
Verified signature168d9b3 -
Update config.json
Verified signaturecfdfc77 -
Update config.json
Verified signature8295b3c -
Update config.json
Verified signature9ae5225 -
Update generation_config.json
Verified signature6d9e81c -
Update config.json
Verified signature258c898 -
Upload ExtendedMptForCausalLM
Verified signature3ae9dd7 -
Delete pytorch_model.bin.index.json
Verified signature0a4dfe7 -
Delete pytorch_model-00010-of-00013.bin
Verified signature8cbb84e -
Delete pytorch_model-00011-of-00013.bin
Verified signature3efe542 -
Delete pytorch_model-00012-of-00013.bin
Verified signatured9c464a -
Delete pytorch_model-00013-of-00013.bin
Verified signaturee0af1f7 -
Delete pytorch_model-00009-of-00013.bin
Verified signatureb8ae0a4 -
Delete pytorch_model-00008-of-00013.bin
Verified signature316de68 -
Delete pytorch_model-00007-of-00013.bin
Verified signature44dfc1e -
Delete pytorch_model-00006-of-00013.bin
Verified signaturef389b60 -
Delete pytorch_model-00005-of-00013.bin
Verified signatured6b5399 -
Delete pytorch_model-00004-of-00013.bin
Verified signature2db1171 -
Delete pytorch_model-00003-of-00013.bin
Verified signature4d034c9 -
Delete pytorch_model-00002-of-00013.bin
Verified signature7fc154d -
Delete pytorch_model-00001-of-00013.bin
Verified signature72a3667 -
Update config.json
Verified signature940983f -
Update config.json
Verified signature273c4b4 -
Update config.json
Verified signature42cd95e
-
Upload ExtendedMptForCausalLM
Verified signaturefbcc068 -
Add tokenizer files
Verified signature46568df -
Upload 2 files
Verified signature7be8ec4 -
Update generation_config.json
Verified signatureaa260cb -
Update config.json
Verified signatureaa4af52
-
Upload ExtendedMptForCausalLM
Verified signature7a03575 -
initial commit
Verified signaturefe08e56