Text Generation
Transformers
Safetensors
English
speech
duplex
voice-assistant
streaming
tool-calling
qwen
text-to-speech
Instructions to use sadmN/aiden-duplex with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sadmN/aiden-duplex with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sadmN/aiden-duplex")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sadmN/aiden-duplex", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sadmN/aiden-duplex with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sadmN/aiden-duplex" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sadmN/aiden-duplex", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sadmN/aiden-duplex
- SGLang
How to use sadmN/aiden-duplex 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 "sadmN/aiden-duplex" \ --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": "sadmN/aiden-duplex", "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 "sadmN/aiden-duplex" \ --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": "sadmN/aiden-duplex", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sadmN/aiden-duplex with Docker Model Runner:
docker model run hf.co/sadmN/aiden-duplex
Installer: add huggingface_hub[hf_transfer] for checkpoint download
Browse files2 unmodified lines345678910111213141516171819202122232425262728292 unmodified linesset -euo pipefailROOT=$(cd "$(dirname "$0")/.." && pwd)TORCH_INDEX=https://download.pytorch.org/whl/cu128command -v python3.12 >/dev/null || { echo "python3.12 required"; exit 1; }python3.12 -m venv "$ROOT/.venv-thinker""$ROOT/.venv-thinker/bin/pip" install -q --upgrade pip"$ROOT/.venv-thinker/bin/pip" install -q --index-url "$TORCH_INDEX" torch==2.8.0"$ROOT/.venv-thinker/bin/pip" install -q \transformers==5.23.0 peft==0.22.0 accelerate==1.16.0 tokenizers==0.23.3 \safetensors==0.8.0 numpy==2.5.2 aiohttp==3.14.5 soundfile==0.14.0 librosa==1.0.1python3.12 -m venv "$ROOT/.venv-voice""$ROOT/.venv-voice/bin/pip" install -q --upgrade pip"$ROOT/.venv-voice/bin/pip" install -q --index-url "$TORCH_INDEX" \torch==2.8.0 torchaudio==2.8.0"$ROOT/.venv-voice/bin/pip" install -q \faster-whisper==1.2.1 transformers==4.57.3 soundfile==0.14.0 librosa==1.0.1 \sphn==0.2.1 numpy==2.5.2 aiohttp==3.14.5"$ROOT/.venv-voice/bin/pip" install -q qwen-tts==0.1.1 || \echo "qwen_tts wheel unavailable: install it manually before running""$ROOT/.venv-thinker/bin/python" -c \"import torch,transformers,peft,aiohttp;print('thinker ok',torch.__version__,transformers.__version__)""$ROOT/.venv-voice/bin/python" -c \"import torch,faster_whisper;print('voice ok',torch.__version__)"echo "Install complete. Next: scripts/download_checkpoints.sh"2 unmodified lines3456789101112131415161718192021222 unmodified linesset -euo pipefailROOT=$(cd "$(dirname "$0")/.." && pwd)TORCH_INDEX=https://download.pytorch.org/whl/cu128command -v python3.12 >/dev/null || { echo "python3.12 required"; exit 1; }python3.12 -m venv "$ROOT/.venv-thinker""$ROOT/.venv-thinker/bin/pip" install -q --upgrade pip"$ROOT/.venv-thinker/bin/pip" install -q --index-url "$TORCH_INDEX" torch==2.8.0"$ROOT/.venv-thinker/bin/pip" install -q transformers==5.23.0 peft==0.22.0 accelerate==1.16.0 tokenizers==0.23.3 safetensors==0.8.0 numpy==2.5.2 aiohttp==3.14.5 soundfile==0.14.0 librosa==1.0.1 "huggingface_hub[hf_transfer]"python3.12 -m venv "$ROOT/.venv-voice""$ROOT/.venv-voice/bin/pip" install -q --upgrade pip"$ROOT/.venv-voice/bin/pip" install -q --index-url "$TORCH_INDEX" torch==2.8.0 torchaudio==2.8.0"$ROOT/.venv-voice/bin/pip" install -q faster-whisper==1.2.1 transformers==4.57.3 soundfile==0.14.0 librosa==1.0.1 sphn==0.2.1 numpy==2.5.2 aiohttp==3.14.5"$ROOT/.venv-voice/bin/pip" install -q qwen-tts==0.1.1 || echo "qwen_tts wheel unavailable: install manually""$ROOT/.venv-thinker/bin/python" -c "import torch,transformers,peft,aiohttp;print('thinker ok',torch.__version__,transformers.__version__)""$ROOT/.venv-voice/bin/python" -c "import torch,faster_whisper;print('voice ok',torch.__version__)"echo "Install complete. Next: scripts/download_checkpoints.sh"
scripts/install_env.sh+7-14