Instructions to use daspartho/prompt-extend with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use daspartho/prompt-extend with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="daspartho/prompt-extend")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("daspartho/prompt-extend") model = AutoModelForCausalLM.from_pretrained("daspartho/prompt-extend", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use daspartho/prompt-extend with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "daspartho/prompt-extend" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "daspartho/prompt-extend", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/daspartho/prompt-extend
- SGLang
How to use daspartho/prompt-extend 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 "daspartho/prompt-extend" \ --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": "daspartho/prompt-extend", "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 "daspartho/prompt-extend" \ --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": "daspartho/prompt-extend", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use daspartho/prompt-extend with Docker Model Runner:
docker model run hf.co/daspartho/prompt-extend
Commit History
-
Update README.md
d6573fc -
Update README.md
1ba82d9
-
Update README.md
07a2ab7 -
update model card README.md
776d554 -
End of training
1d9c127 -
Training in progress, epoch 5
098c8a0 -
Training in progress, epoch 4
dbdc999 -
Training in progress, epoch 3
1b49c4e -
Training in progress, epoch 2
bfe7d36 -
Training in progress, epoch 1
d6e7882 -
Training in progress, step 7500
bafcf93
-
Training in progress, step 7000
031ab47 -
Training in progress, step 6500
251ddc0 -
Training in progress, step 6000
97230ba -
Training in progress, step 5500
1cfc75b -
Training in progress, step 5000
b6d0124 -
Training in progress, step 4500
f762fb2 -
Training in progress, step 4000
926a5af -
Training in progress, step 3500
b6c2425 -
Training in progress, step 3000
09c17d3 -
Training in progress, step 2500
38dea86 -
Training in progress, step 2000
b84559a -
Training in progress, step 1500
f6ab216 -
Training in progress, step 1000
5485c27 -
Training in progress, step 500
04bdedc -
update model card README.md
68ce505 -
End of training
1a1b581 -
Training in progress, step 7500
b56f7d3 -
Training in progress, step 7000
38304ba -
Training in progress, step 6500
4231b14 -
Training in progress, step 6000
270f8ba -
Training in progress, step 5500
01c620d -
Training in progress, step 5000
948b853 -
Training in progress, step 4500
c90b5bd -
Training in progress, step 4000
4b91819 -
Training in progress, step 3500
31c84c1 -
Training in progress, step 3000
b53a114 -
Training in progress, step 2500
470126e -
Training in progress, step 2000
2ac9db5 -
Training in progress, step 1500
2991c9c -
Training in progress, step 1000
6a44915 -
Training in progress, step 500
d539ff2
-
added space badge
57278a3 -
Update README.md
ec67838
-
update model card README.md
59fff9b -
End of training
ebdb641 -
Training in progress, step 500
be04d9e -
initial commit
2a82b50