Instructions to use normalcomputing/extended-mind-mpt-7b-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use normalcomputing/extended-mind-mpt-7b-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="normalcomputing/extended-mind-mpt-7b-chat", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("normalcomputing/extended-mind-mpt-7b-chat", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use normalcomputing/extended-mind-mpt-7b-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-7b-chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "normalcomputing/extended-mind-mpt-7b-chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/normalcomputing/extended-mind-mpt-7b-chat
- SGLang
How to use normalcomputing/extended-mind-mpt-7b-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-7b-chat" \ --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": "normalcomputing/extended-mind-mpt-7b-chat", "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 "normalcomputing/extended-mind-mpt-7b-chat" \ --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": "normalcomputing/extended-mind-mpt-7b-chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use normalcomputing/extended-mind-mpt-7b-chat with Docker Model Runner:
docker model run hf.co/normalcomputing/extended-mind-mpt-7b-chat
Commit History
-
Update README.md
Verified signaturee5bfae0 -
Update README.md
Verified signaturefb2e31e
-
Upload 2 files
Verified signaturead894e8 -
Update modeling.py
Verified signaturefd5ca23 -
Update configuration.py
Verified signature6068b36 -
Upload 2 files
Verified signature5b4bbd1 -
Upload 2 files
Verified signature73e59c4
-
Upload 3 files
Verified signature78df6d3 -
Update generation_config.json
Verified signature9e25499
-
Delete tokenizer.model
Verified signaturebe03e07 -
Update generation_config.json
Verified signature7b85fc8 -
Update generation_config.json
Verified signature4938bf4 -
Update config.json
Verified signature2e17c96 -
Delete blocks.py
Verified signature2bd703d -
Delete attention.py
Verified signaturedd6bd5b -
Delete utils.py
Verified signatureca9f198 -
Delete modeling_mpt.py
Verified signature77921fc -
Update model code
Verified signaturef8a6b8e -
Add tokenizer files
Verified signature2192711
-
Update README.md
4982797 -
Create README.md
0f40f95
-
Update modeling_mpt.py
0d4fdad -
Update blocks.py
e3937d1 -
Update modeling_mpt.py
8cc3046 -
Update blocks.py
c661a4d -
Upload 4 files (#1)
- Upload 4 files (ff7af826a9c4a95273118c926ae949e1ae81f0cb)d93abf8
-
Update config.json
35f6439
-
Update config.json
a728fdd -
Upload ExtendedMPTForCausalLM
088b940 -
upload custom code
c2d160f -
initial commit
925cd56