One-liner to run DeepSeek V4.1 Flash (1M context) via Pi CLI on Hugging Face
lhoestq · x · 2026-11-30
Hugging Face co-founder Quentin Lhoest shares an "underrated command": running deepseek-ai/DeepSeek-V4.1-Flash-1017 through the Pi agent CLI via Hugging Face Inference Providers.
Per the screenshot, the model takes text+image input, costs $0.10/$0.29 per 1M tokens, and has a 1.05M-token context. Setup: install Pi with a curl script, add a huggingface provider block (X-HF-Bill-To header) to /.pi/agent/models.json, export HFTOKEN, then pi --provider huggingface --model ....
More from coding & agent
- Multiplayer Agents Are Everywhere on the TL, but Their UI Is Still Missing — marlene_zw · 2026-11-30
- ocr-decision-0.8b: Apache-2.0 model routes OCR pipelines at 22ms per page, zero tokens — vanstriendaniel · 2026-11-30
- Automated follow-ups become background noise; monthly human check-ins fix that — curious_vii · 2026-11-30
- Open-sourced $6 tutorial trains Qwen3-1.7B to play Wordle with SFT then GRPO — SergioPaniego · 2026-11-30
- Auto-Generating Evergreen Agent Benchmarks from Enterprise Migration Docs — burkov · 2026-11-30
- Dev audits his App Store listing with Claude Code over MCP, scores 77.8/100 in 9 seconds — Adex77 · 2026-11-30