Instructions to use normalcomputing/extended-mind-mpt-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use normalcomputing/extended-mind-mpt-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="normalcomputing/extended-mind-mpt-7b", 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", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use normalcomputing/extended-mind-mpt-7b 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" # 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", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/normalcomputing/extended-mind-mpt-7b
- SGLang
How to use normalcomputing/extended-mind-mpt-7b 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" \ --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", "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" \ --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", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use normalcomputing/extended-mind-mpt-7b with Docker Model Runner:
docker model run hf.co/normalcomputing/extended-mind-mpt-7b
Commit History
-
Update README.md
Verified signaturef8bb893 -
Update README.md
Verified signaturecf12988
-
Upload 2 files
Verified signatureab4e30e -
Update modeling.py
Verified signature253c6b8 -
Update configuration.py
Verified signature79de802 -
Upload configuration.py
Verified signatured3a1be6 -
Upload modeling.py
Verified signaturec457248 -
Upload 2 files
Verified signatured54520a
-
Delete attention.py
Verified signature9da3cb9 -
Update generation_config.json
Verified signatured6a1693 -
Update generation_config.json
Verified signature5f14944 -
Update config.json
Verified signature90c0a8e -
Add tokenizer files
Verified signature3123851 -
Update config.json
Verified signature3cc4f4a -
Delete modeling_mpt.py
Verified signaturef73b01f -
Delete blocks.py
Verified signaturee9e7545 -
Delete utils.py
Verified signature32c8d68 -
Update model code
Verified signatureeef0308 -
Update generation_config.json
Verified signaturedebe46b
-
Create README.md
1d73c7c
-
Update blocks.py
ca22bee -
Update modeling_mpt.py
ad1339c -
Update modeling_mpt.py
f8fd6e1 -
Update blocks.py
aaf8a87 -
latest file versions (#1)
- latest file versions (805432a6a51191b99fa33de06a0a61b2231ad314)4186bcc
-
add custom code
646d067 -
add config
e171b81 -
Delete utils.py
db6c55c -
Delete configuration.py
4aec30a -
Delete modeling_mpt.py
c09aabb -
Delete blocks.py
75ee012 -
Delete attention.py
10463cf -
Merge branch 'main' of https://huggingface.co/normalcomputing/extended-mind-mpt-7b into main
ac9e251 -
add utils
90f88b7 -
Update modeling_mpt.py
c0a2dea -
Update blocks.py
9b91702 -
Update config.json
b1f74a8 -
Update config.json
56bfb1a -
add custom code
043b23f -
Upload ExtendedMPTForCausalLM
f5541f6
-
Upload ExtendedMPTForCausalLM
0effbcc
-
initial commit
ffccc9a