Text Generation
Transformers
PyTorch
mpt
Composer
MosaicML
llm-foundry
custom_code
text-generation-inference
Instructions to use debisoft/mpt-7b-8k-instruct-peft-compatible with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use debisoft/mpt-7b-8k-instruct-peft-compatible with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="debisoft/mpt-7b-8k-instruct-peft-compatible", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("debisoft/mpt-7b-8k-instruct-peft-compatible", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("debisoft/mpt-7b-8k-instruct-peft-compatible", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use debisoft/mpt-7b-8k-instruct-peft-compatible with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "debisoft/mpt-7b-8k-instruct-peft-compatible" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "debisoft/mpt-7b-8k-instruct-peft-compatible", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/debisoft/mpt-7b-8k-instruct-peft-compatible
- SGLang
How to use debisoft/mpt-7b-8k-instruct-peft-compatible 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 "debisoft/mpt-7b-8k-instruct-peft-compatible" \ --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": "debisoft/mpt-7b-8k-instruct-peft-compatible", "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 "debisoft/mpt-7b-8k-instruct-peft-compatible" \ --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": "debisoft/mpt-7b-8k-instruct-peft-compatible", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use debisoft/mpt-7b-8k-instruct-peft-compatible with Docker Model Runner:
docker model run hf.co/debisoft/mpt-7b-8k-instruct-peft-compatible
Librarian Bot: Update Hugging Face dataset ID
#1
by librarian-bot - opened
README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-sa-3.0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
datasets:
|
| 4 |
-
- competition_math
|
| 5 |
- knkarthick/dialogsum
|
| 6 |
- mosaicml/dolly_hhrlhf
|
| 7 |
- duorc
|
| 8 |
- emozilla/quality
|
| 9 |
- scrolls/summ_screen_fd
|
| 10 |
- spider
|
| 11 |
-
tags:
|
| 12 |
-
- Composer
|
| 13 |
-
- MosaicML
|
| 14 |
-
- llm-foundry
|
| 15 |
inference: false
|
| 16 |
---
|
| 17 |
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-sa-3.0
|
| 3 |
+
tags:
|
| 4 |
+
- Composer
|
| 5 |
+
- MosaicML
|
| 6 |
+
- llm-foundry
|
| 7 |
datasets:
|
| 8 |
+
- hendrycks/competition_math
|
| 9 |
- knkarthick/dialogsum
|
| 10 |
- mosaicml/dolly_hhrlhf
|
| 11 |
- duorc
|
| 12 |
- emozilla/quality
|
| 13 |
- scrolls/summ_screen_fd
|
| 14 |
- spider
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
inference: false
|
| 16 |
---
|
| 17 |
|