Instructions to use Multi-Domain-Expert-Learning/given-mpt-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Multi-Domain-Expert-Learning/given-mpt-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Multi-Domain-Expert-Learning/given-mpt-7b", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Multi-Domain-Expert-Learning/given-mpt-7b", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Multi-Domain-Expert-Learning/given-mpt-7b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Multi-Domain-Expert-Learning/given-mpt-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Multi-Domain-Expert-Learning/given-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": "Multi-Domain-Expert-Learning/given-mpt-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Multi-Domain-Expert-Learning/given-mpt-7b
- SGLang
How to use Multi-Domain-Expert-Learning/given-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 "Multi-Domain-Expert-Learning/given-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": "Multi-Domain-Expert-Learning/given-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 "Multi-Domain-Expert-Learning/given-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": "Multi-Domain-Expert-Learning/given-mpt-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Multi-Domain-Expert-Learning/given-mpt-7b with Docker Model Runner:
docker model run hf.co/Multi-Domain-Expert-Learning/given-mpt-7b
Commit History
-
Update README.md
Ontocord.AI2cd41a9
-
Update README.md
Ontocord.AI4a51bc1 -
Update README.md
Ontocord.AI92d5e4d
-
Update config.json
Ontocord.AI7cb826f -
Upload tokenizer
Ontocord.AI1c14068 -
Upload MPTForCausalLM
Ontocord.AIf28a2f8 -
Update README.md
Ontocord.AI067de39 -
Update README.md
Ontocord.AIed3b869 -
Upload param_init_fns.py with huggingface_hub
Ontocord.AI48626b3 -
Upload meta_init_context.py with huggingface_hub
Ontocord.AI4205227 -
Upload norm.py with huggingface_hub
Ontocord.AI36f6d1b -
Upload flash_attn_triton.py with huggingface_hub
Ontocord.AI3ba077f -
Upload configuration_mpt.py with huggingface_hub
Ontocord.AIa3dbc8e -
Upload modeling_mpt.py with huggingface_hub
Ontocord.AI818c640 -
Upload custom_embedding.py with huggingface_hub
Ontocord.AIda654bf -
Upload blocks.py with huggingface_hub
Ontocord.AI99ce933 -
Upload attention.py with huggingface_hub
Ontocord.AI67cff66 -
Upload adapt_tokenizer.py with huggingface_hub
Ontocord.AIc6fee50 -
Upload hf_prefixlm_converter.py with huggingface_hub
Ontocord.AI3fbe9e1 -
Upload param_init_fns.py with huggingface_hub
Ontocord.AI64ce0b3 -
Upload pytorch_model.bin.index.json with huggingface_hub
Ontocord.AI0dd4a8b -
Upload requirements.txt with huggingface_hub
Ontocord.AIf17c16d -
Upload meta_init_context.py with huggingface_hub
Ontocord.AI73c5ad1 -
Upload norm.py with huggingface_hub
Ontocord.AI3976be9 -
Upload generation_config.json with huggingface_hub
Ontocord.AIb62438c -
Upload special_tokens_map.json with huggingface_hub
Ontocord.AIc2824f4 -
Upload flash_attn_triton.py with huggingface_hub
Ontocord.AI6bb68d8 -
Upload configuration_mpt.py with huggingface_hub
Ontocord.AId11bb62 -
Upload modeling_mpt.py with huggingface_hub
Ontocord.AI3a6a19a -
Upload custom_embedding.py with huggingface_hub
Ontocord.AIc5e4b95 -
Upload blocks.py with huggingface_hub
Ontocord.AI4555156 -
Upload attention.py with huggingface_hub
Ontocord.AI1df5320 -
Upload tokenizer.json with huggingface_hub
Ontocord.AI5fb75ec -
Upload adapt_tokenizer.py with huggingface_hub
Ontocord.AI787f7bb -
Upload config.json with huggingface_hub
Ontocord.AI2631957 -
Upload tokenizer_config.json with huggingface_hub
Ontocord.AI96cd4f9 -
Upload hf_prefixlm_converter.py with huggingface_hub
Ontocord.AIf0ac120 -
Upload README.md with huggingface_hub
Ontocord.AIf07adc9 -
Create modeling_mpt.py
Ontocord.AId7d56ce
-
Upload tokenizer
Ontocord.AIa324d28 -
Upload MPTForCausalLM
Ontocord.AI73513b8 -
Upload tokenizer
Ontocord.AI49c0b05 -
Upload MPTForCausalLM
Ontocord.AI63940da
-
Upload tokenizer
Ontocord.AIfde62a9 -
Upload MPTForCausalLM
Ontocord.AI63664ff -
initial commit
4673a35