Instructions to use pfnet/plamo-13b-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pfnet/plamo-13b-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pfnet/plamo-13b-instruct", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("pfnet/plamo-13b-instruct", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pfnet/plamo-13b-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pfnet/plamo-13b-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pfnet/plamo-13b-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/pfnet/plamo-13b-instruct
- SGLang
How to use pfnet/plamo-13b-instruct 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 "pfnet/plamo-13b-instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pfnet/plamo-13b-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "pfnet/plamo-13b-instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pfnet/plamo-13b-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use pfnet/plamo-13b-instruct with Docker Model Runner:
docker model run hf.co/pfnet/plamo-13b-instruct
Commit History
-
Add "chat_template" to tokenizer_config.json (#1)
Verified signature- Add "chat_template" to tokenizer_config.json (2de2f1206c4927755e9471b8ce1e9b6c14f5d469) - Add assistant role (28979cfbb62e70f1e7d811ff6d5c2d0c1e6f7fe3) - Update tokenizer_config.json (e6f096488fbc19fd5e2421cf730c5824d5c0a8ed) - Add assistant content to prompt (f8e1bb1560d7dfc88e2b713a33ce11045d1deaef) Co-authored-by: Shunta Saito <mitmul@users.noreply.huggingface.co>f0c2ae7
-
Delete pytorch_model.bin
4002834 -
Update README.md
ebc2061 -
Update README.md
0507eed
-
Update README.md
39ac725
-
Update README.md
699baf8
-
Update README.md
1a43a0b -
Update README.md
a23beaa -
Update README.md
8ed611a
-
Update README.md
c167a74 -
Update README.md
7fbb404 -
Update README.md
cecf105
-
Update README.md
5217d78
-
Update README.md
bf1b491 -
Update README.md
fb8e04f -
Update README.md
e8335c3 -
Update README.md
12aab84 -
Update README.md
393117d -
Update tokenizer_config.json
2c5c1ab -
Upload folder using huggingface_hub
65dd6ae -
initial commit
1efcd9d