Fine-Tuning Qwen 14B for Discord Autocomplete

✍️ OpenClawRadar📅 Published: February 13, 2026🔗 Source
Fine-Tuning Qwen 14B for Discord Autocomplete
Ad

A developer shared their experience on how they fine-tuned the Qwen 14B model to function as an autocomplete tool using their Discord messages. This setup closely resembles tools like GitHub Copilot, where suggestions are made as you type.

The developer used approximately 250 conversations sourced from Discord, obtained through a scraping tool, as their dataset. Each conversation was formatted as chat-ml training samples, particularly focusing on messages where the user said something last, without code blocks or links. This choice indicates a focus on conversational tone rather than technical content.

The Qwen 14B model was fine-tuned using the unsloth.ai platform and QLoRA on a Kaggle GPU, with the entire training process lasting roughly 15 minutes due to the small dataset size. They then merged the fine-tuned model into a .gguf format for local use via ollama.com.

The frontend of this autocomplete tool is implemented as a Chrome extension. It captures the last few messages and the user's ongoing input to build a chat-ml prompt with the appropriate context, which is then used to generate a completion from the Ollama-provided model. A zero-width Unicode character is cleverly used to indicate where the suggestion begins, while pressing shift+tab will accept the suggestion.

Ad

The current setup is operational on Discord, with potential future expansions to support other sites. The developer also suggests experimenting with different model sizes, as the current 14B model nearly maximally uses the available memory. They propose that 4B or 8B models might be viable alternatives, albeit with potential data limitations.

Source code and further details are available on the developer's GitHub at github.com/b44ken/finetune.

📖 Read the full source: r/LocalLLaMA

Ad

👀 See Also

Skales Desktop AI Agent Built with Claude, Features Clippy-Style Mascot
Tools

Skales Desktop AI Agent Built with Claude, Features Clippy-Style Mascot

Skales is a desktop AI agent that runs locally on Windows and macOS, using Claude via OpenRouter/Anthropic API for reasoning and tool execution. It includes a floating Desktop Buddy mascot with a paperclip skin reference and can execute commands like sending emails, managing files, browsing the web, and managing calendars.

OpenClawRadar
MegaClaw: Containerized OpenClaw Setup with Playwright and Homebrew
Tools

MegaClaw: Containerized OpenClaw Setup with Playwright and Homebrew

MegaClaw is a two-image Podman setup for OpenClaw that addresses common installation issues like permission errors and missing dependencies. It uses a multi-stage build with pre-installed Playwright and Homebrew, and bakes user configuration into a runtime image.

OpenClawRadar
Mneme: A PreToolUse Hook That Blocks Claude Code Edits Violating Architecture Decisions
Tools

Mneme: A PreToolUse Hook That Blocks Claude Code Edits Violating Architecture Decisions

Mneme is a PreToolUse hook for Claude Code that checks every Edit/Write/MultiEdit against a local decisions file before disk writes, blocking violations without manual intervention.

OpenClawRadar
Developer shares 10+ MCP servers for AI agent settlement, reputation, and micropayments
Tools

Developer shares 10+ MCP servers for AI agent settlement, reputation, and micropayments

A developer built BlindOracle on Claude Code with 100+ agents and created 10+ MCP servers for settlement, reputation, and micropayments. The architecture includes private commit-reveal forecasts, on-chain scoring, per-request micropayments, and verifiable agent attestation.

OpenClawRadar