Instructions to use loganrobbins/parallel-decoder-transformer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use loganrobbins/parallel-decoder-transformer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="loganrobbins/parallel-decoder-transformer")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("loganrobbins/parallel-decoder-transformer", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use loganrobbins/parallel-decoder-transformer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "loganrobbins/parallel-decoder-transformer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "loganrobbins/parallel-decoder-transformer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/loganrobbins/parallel-decoder-transformer
- SGLang
How to use loganrobbins/parallel-decoder-transformer 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 "loganrobbins/parallel-decoder-transformer" \ --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": "loganrobbins/parallel-decoder-transformer", "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 "loganrobbins/parallel-decoder-transformer" \ --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": "loganrobbins/parallel-decoder-transformer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use loganrobbins/parallel-decoder-transformer with Docker Model Runner:
docker model run hf.co/loganrobbins/parallel-decoder-transformer
| { | |
| "agreement_threshold": 0.15, | |
| "roc_points": [ | |
| { | |
| "threshold": 0.05, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.1, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.15, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.2, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.25, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.3, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.35, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.4, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.45, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.5, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.55, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.6, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.65, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.7, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.75, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.8, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.85, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.9, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| }, | |
| { | |
| "threshold": 0.95, | |
| "precision": 0.0, | |
| "recall": 0.0, | |
| "tp": 0.0, | |
| "fp": 0.0, | |
| "fn": 0.0, | |
| "tn": 0.0 | |
| } | |
| ] | |
| } |