Astra’s Modding Community
PUBLIC PROJECTS

ChudGPT-Public

ChudGPT Public Repo. (AI)

Source on GitHub
Public sourceNot archivedLicense: NOASSERTIONPython

Project documentation

ChudGPT-Public

ChudGPT terminology: In ChudGPT's project terminology, AI stands for Artificial Idiot. It does not mean Artificial Intelligence, and the project is not presented as SI.

ChudGPT Desktop

The native ChudGPT Desktop client now lives entirely in `desktop/`. It provides persistent multi-chat history, local search and data controls, a futuristic native interface, safe ChudGPT-Public API integration, and Windows/macOS/Linux release packaging without bundling the model.

ChudGPT-Public is an independently trained, experimental conversational language model and public web API. It has 20,999,184 trainable parameters and is designed for general conversation, basic facts, arithmetic, and simple Python, C#, JavaScript, and Unity questions.

Offline browser chat

The API now serves its bundled Public chat at http://127.0.0.1:8010/ and Music at http://127.0.0.1:8010/music, with local assets and same-origin API requests. In the parent ChudGPT checkout, Open Public Offline.cmd starts or reuses Public; Open ChudGPT Offline.cmd offers all 12 locally installed models. No download or tunnel is needed. This PC has launchers in D:\ChudGPT-Offline.

Recipe library

Ask How do I make pancakes?, Recipe for rice for 6 people, or What recipes do you know?. The structured library contains 12 starter recipes with ingredients, steps, approximate times, and scaling for 1–20 servings. Follow up with just ingredients, steps, or make it for 4 people. API replies use assistance_reason: recipe_library; these are library answers, not neural output. Unsupported dishes and dietary modifications retain the normal model path and are not verified library recipes. Data lives in data/recipes.json. No checkpoint retraining is needed.

General assistant rebalance

The current main checkpoint is public_assistant_rebalance/latest.pt (step 1,400), trained on 1,347 examples with about 6% game retention. It improves titles, basic explanations, math-help requests, and simple Python over the game-heavy checkpoint. All existing fallbacks and grounded handlers are unchanged, including the focused LGBTQIA+ checkpoint. It still fails some unseen extraction, rewriting, and creative constraints; this is not a broadly reliable assistant. See evaluation report.

September 2026 game and awareness update

The previous checkpoint was public_games_v2/step_800.pt, an earlier snapshot after 1,400 cumulative fine-tuning steps. The full experiment ran 3,000 steps, but the earlier snapshot preserves rougher V20 behavior. Casual identity conversations use neural generation and the first usable draft, rather than canned acknowledgments or best-of-five selection. Training adds game/modding knowledge and model-family identity with filtered replay data. Narrow LGBTQIA+, emoji, and geography handlers are restored; supported repeated grounded answers vary wording. Games and unknown model names remain neural, with no new generic nonanswer or invented-model fallback. Humor is occasional and factual answers can still be wrong. See training and evaluation report.

Focused LGBTQIA+ conversation repair

serving_config.json now loads public_lgbtq_chat_v2/latest.pt for neural LGBTQIA+ conversation only. It was fine-tuned for 500 + 350 CUDA steps on original disclosures and follow-ups. Casual replies are generated, not selected from an acknowledgment table. Other topics use the separately selected main checkpoint. API replies expose neural_profile and generation_step; status exposes lgbtq_neural_checkpoint. This small specialist can still misunderstand paraphrases and repeat learned wording. See focused report.

ChudGPT-Public-Music V1

Music V1 is a separate 20,999,184-parameter checkpoint fine-tuned for original lyrics, hooks, titles, song concepts, and musical style ideas. It has isolated conversation sessions and does not replace the standard Public V20 checkpoint. Its personality deliberately permits funny, chaotic, and occasionally nonsensical writing. It remains a very small experimental model: rhyme, factual music knowledge, and instruction following are not dependable.

The expanded Music corpus contains 2,798 unique conversations, including complete songs, vague real-world requests, genre/title selection, revisions, and multi-turn title/style recall. A two-stage CUDA response-only update ran for 500 then 400 steps; held-out validation loss reached 0.7541 after the first stage and 0.6448 after the continuation. The checkpoint is generated locally at checkpoints/public_music_v1/best.pt and is excluded from Git because of its size.

Music serving is deliberately pure generation. It has no canned lyric engine, keyword answer table, reviewed-response layer, or fallback song text. The runtime samples multiple complete neural drafts and ranks those generated drafts for requested structure and conversation continuity. Because this remains a 21M-parameter experiment, outputs can still be malformed, repetitive, or forget details.

Build and train it independently:

python build_music_v1_data.py
python fine_tune.py --config configs/finetune_music_v1.yaml --device cuda

Run both Public and Music checkpoints:

python public_api_server.py --device cuda --port 8010 --music-checkpoint checkpoints/public_music_v1/best.pt

Canonical Public and Music endpoints are under /api/models/public and /api/models/music; each provides info, chat, one-shot generate, and clear routes. GET /api/models discovers the loaded models. Existing /api/chat and /api/music/* routes remain compatible. The website is available at /music, Discord supports !chud model <id>, and the desktop selector now sits beside the message composer.

Public V20

V20 is the current strongest Public serving profile. It combines the independently trained 20,999,184-parameter checkpoint with a local reviewed-response layer, exact decimal and large-integer arithmetic, conservative slang normalization, protected identity/meme facts, multi-candidate neural selection, and a dedicated Discord context mode. It does not call Pro, ChatGPT, or any external model.

The current V20 corpus contains 6,912 unique cleaned conversations after removing 2,080 topic/template leaks and 151 malformed or low-quality rows. Its balanced quality tune used 1,719 conversations: 719 Public-authored conversations, 700 reviewed prose conversations, 120 legitimate structured requests, and 180 reviewed code tasks. Earlier V20 checkpoints remain archived and selectable.

Expanded emoji awareness

The September 22 recovery reconnects explicit emoji reactions and meaning questions to the local semantic responder. LGBTQIA+ definitions, acceptance questions, casual disclosures (im gay), and session-local pronoun recall are handled explicitly. Pride flags indicate possible pride or support, never the sender's identity. General questions and writing tasks containing emoji still use neural generation. The recovery was checked against the selected public_general_recovery_v5/latest.pt checkpoint at step 129; it changes runtime behavior, not checkpoint weights. Restart the Public API process after updating. See reports/awareness_recovery_20260922.json for the two-file, 1,519-record Discord audit and CUDA serving checks.

The same update adds local geography answers for all 50 U.S. state capitals, 123 country capitals, country locations, and common world questions about oceans, continents, mountains, and deserts. For example, What is the capital of Australia returns The capital of Australia is Canberra. Explicit capital questions support state abbreviations and immediate follow-ups such as What about Canada?. See reports/GEOGRAPHY_RECOVERY_20260922.md for sources and coverage limits.

Public V20 uses the complete cached metadata shipped by emoji 2.15.0: 5,225 Unicode sequences through Emoji 17.0. It recognizes emoji-only messages, multi-codepoint ZWJ sequences, skin-tone variants, flags, common colon aliases, classic emoticons, and Discord static/animated custom emoji names. A compact model-only annotation supplies possible meanings while preserving the original message; surrounding conversation still decides whether 😭, 💀, or 🔥 is literal, serious, sarcastic, celebratory, or meme-like. Reactions to recent bot messages are remembered as context for the next turn but do not trigger automatic replies.

This is semantic assistance, not a claim that a 21M-parameter checkpoint perfectly understands every emoji or culture-specific use. Unknown or ambiguous usage remains generative, and context can still be misread.

It is a small custom model—not ChatGPT and not a frontier model. It can be inaccurate, has no live internet access, and should not be trusted for medical, legal, financial, or safety-critical decisions.

Architecture

| Setting | Value |

|---|---:|

| Parameters | 20,999,184 |

| Vocabulary | 8,192 BPE tokens |

| Context length | 1,024 tokens |

| Embedding width | 384 |

| Transformer layers | 9 |

| Attention heads | 6 |

| Feed-forward width | 1,808 |

| Positional encoding | RoPE |

The model is a decoder-only causal transformer implemented in Python and PyTorch. Public uses response-only fine-tuning, multi-candidate generation, response-type/relevance scoring, conservative intent detection, and strict local use of reviewed examples.

Public now has explicit self-knowledge: it can explain artificial intelligence, its own 20,999,184-parameter transformer architecture and limitations, the film/slang/project meanings of “chud,” and the roles of Buggy, Ultimate, Plus, Pro, Code, Mega, and the archived numbered checkpoints. Those descriptions come from audited project metadata; Public does not call the sibling models to answer.

Project layout

ChudGPT-Public/
├── web/static/                  complete Vercel site and serverless proxy
├── chudlm/                      model, data, prompting, and generation code
├── configs/                     model and training settings
├── data/public_conversations.jsonl
├── tests/
├── prepare.py
├── train_public.py
├── finetune_public.py
├── evaluate_public.py
├── public_api_server.py         local CUDA inference API
├── start_training.cmd
├── train_pipeline.ps1
└── VERCEL_DEPLOYMENT.md

Requirements

  • Windows 10/11 or another Python-compatible operating system
  • Python 3.10+
  • 16 GB system RAM recommended
  • NVIDIA GPU with 8 GB VRAM recommended for training
  • CPU inference works but is slower
  • Node/Vercel is only used for the lightweight website/API proxy

Install dependencies:

cd /d C:\path\to\ChudGPT-Public
python -m venv .venv
.venv\Scripts\activate
python -m pip install --upgrade pip
pip install -r requirements.txt

For an NVIDIA GPU, install a CUDA-enabled PyTorch build appropriate for the machine if the default package does not provide CUDA.

Prepare and train

The easiest complete run on this machine is:

cd /d C:\Users\admin\OneDrive\Documents\ChudGPT\ChudGPT-Public
start_training.cmd

That runs data preparation, base pretraining, response-only fine-tuning, and evaluation. Timestamped logs are stored in reports. The Public API checkpoint is selected in serving_config.json; the current selection is recorded in that configuration file. The previous V20 checkpoint, V8 through V18, and the rejected broad V20 candidate remain archived and selectable.

The official Discord bot sends a protected Discord-only system instruction plus scoped server, channel, and speaker metadata. It securely treats the Discord application owner as Astra/the developer; CHUDGPT_DEVELOPER_USER_ID can explicitly override that account. Its conversations are logged as monthly JSONL files under D:\ChudGPT-Discord-Logs by default; set CHUDGPT_DISCORD_LOG_DIR to change that location. Tell server members if their bot messages are being logged.

To switch versions, stop the Public server, edit only selected_checkpoint in serving_config.json, and restart it. You can also perform a one-run override without editing the file:

python public_api_server.py --checkpoint checkpoints/public_v10_balanced/best.pt --device cuda

To reproduce the two Public-only improvement stages after the original chat checkpoint:

python build_public_data.py
python fine_tune.py --config configs/public_v3.yaml --device cuda
python build_alignment_data.py
python fine_tune.py --config configs/public_v4_alignment.yaml --device cuda
python fine_tune.py --config configs/public_v5_dense.yaml --device cuda
python fine_tune.py --config configs/public_v6_alignment.yaml --device cuda
python fine_tune.py --config configs/public_v7_identity.yaml --device cuda
python fine_tune.py --config configs/public_v8_family.yaml --device cuda

Individual commands:

python prepare.py
python count_parameters.py
python train_public.py --device cuda
python finetune_public.py --device cuda
python evaluate_public.py --device cuda
python chat_public.py --device cuda

Training checkpoints are intentionally excluded from Git because they are large generated artifacts. Do not claim an untrained or one-step smoke checkpoint is a completed model.

Run the CUDA API

After training finishes:

cd /d C:\Users\brian\OneDrive\Documents\ChudGPT\ChudGPT-Public
C:\tmp\ChudGPT-venv\Scripts\python.exe public_api_server.py --device cuda --port 8010

Test it locally:

curl http://127.0.0.1:8010/api/status
curl -X POST http://127.0.0.1:8010/api/chat -H "Content-Type: application/json" -d "{\"message\":\"What is 7 + 5?\",\"session_id\":\"demo\"}"

Endpoints:

  • GET /api/status
  • POST /api/chat with message and optional session_id
  • POST /api/clear with session_id
  • GET /api/music/status
  • POST /api/music/chat with message and optional session_id
  • POST /api/music/clear with session_id

Publish with Vercel and Cloudflare

Vercel does not run the CUDA/PyTorch model. It hosts the website and serverless HTTPS proxy. Your PC or mini-server runs public_api_server.py, and Cloudflare Tunnel connects it to Vercel.

  1. Push this repository to GitHub.
  2. Start the CUDA API on port 8010.
  3. Start a Cloudflare tunnel:
   C:\Users\brian\OneDrive\Documents\ChudGPT\tools\cloudflared.exe tunnel --url http://127.0.0.1:8010
  1. Import the GitHub repository into Vercel.
  2. Set Root Directory to web/static.
  3. Select Other as the framework and leave build/install/output commands blank.
  4. Add CHUDGPT_BACKEND_URL using the printed https://...trycloudflare.com origin, without a trailing slash.
  5. Deploy. The site and keyless public API will share the same Vercel domain.

Full instructions and an API-call example are in VERCEL_DEPLOYMENT.md.

The latest prompt-alignment diagnosis, training details, and measured before/after results are in IMPROVEMENT_REPORT.md.

Quick Cloudflare tunnel URLs change after restart. A named Cloudflare Tunnel with your own hostname is recommended for a stable deployment.

For Windows CMD API testing, keep curl.exe on one line; \ is a Linux/macOS line-continuation character and does not work in CMD.

Test

pytest -q

Tests verify the exact parameter count, dataset uniqueness and encoding, tokenizer/model compatibility, API contract, Vercel files, response-quality routing, and the 305-case held-out evaluation definition.

Run the identical live Public-vs-Pro benchmark after both APIs are running:

python benchmark_vs_pro.py --models both

License and credit

See LICENSE. Created by ASTRA228b.

Read the original README

Releases & changelogs

BETA / PRERELEASE

ChudGPT Desktop desktop-v0.5.1

desktop-v0.5.1 · 2026-10-17

Release notes

ChudGPT Desktop desktop-v0.5.1

Native desktop client for every published ChudGPT model.

  • All 14 published profiles in the composer selector: Public V20, Music V1, ten main-family models, Plato, and Plato Mini
  • Model-specific API routing across the Public, main, and stateless Plato services
  • Conversations retain their model identity when the global selector changes
  • Reliable composer focus for new and switched conversations
  • Safer request cancellation and stale-response handling
  • Persistent multi-chat system with isolated legacy sessions and bounded Plato turns
  • Futuristic neon desktop interface and native window controls
  • Local chat search, rename, delete, export, and import
  • Explicit chat actions and reliable inline renaming
  • Deleting a chat cancels its pending request and restores the composer
  • Markdown and polished code rendering
  • Adjustable chat, sidebar, composer, theme, glow, density, startup, and privacy settings
  • Performance mode, status-poll controls, and long-chat render limits
  • Model status, timeout, cancellation, and offline handling
  • Separate Windows, macOS, and Linux packages

ChudGPT-Public is experimental. Responses may be inaccurate or broken.

Full Changelog: https://github.com/ASTRA228b/ChudGPT-Public/compare/desktop-v0.5.0...desktop-v0.5.1

BETA / PRERELEASE

ChudGPT Desktop desktop-v0.5.0

desktop-v0.5.0 · 2026-10-17

Release notes

ChudGPT Desktop desktop-v0.5.0

Native desktop client for every published ChudGPT model.

  • All 14 published profiles in the composer selector: Public V20, Music V1, ten main-family models, Plato, and Plato Mini
  • Model-specific API routing across the Public, main, and stateless Plato services
  • Conversations retain their model identity when the global selector changes
  • Reliable composer focus for new and switched conversations
  • Safer request cancellation and stale-response handling
  • Persistent multi-chat system with isolated legacy sessions and bounded Plato turns
  • Futuristic neon desktop interface and native window controls
  • Local chat search, rename, delete, export, and import
  • Markdown and polished code rendering
  • Adjustable chat, sidebar, composer, theme, glow, density, startup, and privacy settings
  • Performance mode, status-poll controls, and long-chat render limits
  • Model status, timeout, cancellation, and offline handling
  • Separate Windows, macOS, and Linux packages

ChudGPT-Public is experimental. Responses may be inaccurate or broken.

Full Changelog: https://github.com/ASTRA228b/ChudGPT-Public/compare/desktop-v0.4.1...desktop-v0.5.0

BETA / PRERELEASE

ChudGPT Desktop desktop-v0.4.1

desktop-v0.4.1 · 2026-09-06

Release notes

ChudGPT Desktop desktop-v0.4.1

Native desktop client for every published ChudGPT model.

  • All 12 published models in a selector attached directly to the message composer
  • Model-specific public API routing across the Public and main ChudGPT services
  • Public V20 and Music V1 plus Buggy, legacy, Ultimate, Plus, Pro, Code, and Mega modes
  • Reliable composer focus for new and switched conversations
  • Safer request cancellation and stale-response handling
  • Persistent multi-chat system with isolated API sessions
  • Futuristic neon desktop interface and native window controls
  • Local chat search, rename, delete, export, and import
  • Markdown and polished code rendering
  • Adjustable chat, sidebar, composer, theme, glow, density, startup, and privacy settings
  • Performance mode, status-poll controls, and long-chat render limits
  • ChudGPT-Public status, timeout, cancellation, and offline handling
  • Separate Windows, macOS, and Linux packages

ChudGPT-Public is experimental. Responses may be inaccurate or broken.

Full Changelog: https://github.com/ASTRA228b/ChudGPT-Public/compare/desktop-v0.3.1...desktop-v0.4.1

BETA / PRERELEASE

ChudGPT Desktop desktop-v0.3.1

desktop-v0.3.1 · 2026-08-27

Release notes

ChudGPT Desktop desktop-v0.3.1

Native desktop client for ChudGPT-Public and ChudGPT-Public-Music V1.

  • Public V20 / Music V1 model-profile selector in Settings
  • Isolated Music sessions, status, welcome text, and API routing
  • Reliable composer focus for new and switched conversations
  • Safer request cancellation and stale-response handling
  • Persistent multi-chat system with isolated API sessions
  • Futuristic neon desktop interface and native window controls
  • Local chat search, rename, delete, export, and import
  • Markdown and polished code rendering
  • Adjustable chat, sidebar, composer, theme, glow, density, startup, and privacy settings
  • Performance mode, status-poll controls, and long-chat render limits
  • ChudGPT-Public status, timeout, cancellation, and offline handling
  • Separate Windows, macOS, and Linux packages

ChudGPT-Public is experimental. Responses may be inaccurate or broken.

Full Changelog: https://github.com/ASTRA228b/ChudGPT-Public/compare/desktop-v0.2.1...desktop-v0.3.1

BETA / PRERELEASE

ChudGPT Desktop desktop-v0.2.1

desktop-v0.2.1 · 2026-08-14

Release notes

ChudGPT Desktop desktop-v0.2.1

Native desktop client for ChudGPT-Public.

  • Reliable composer focus for new and switched conversations
  • Safer request cancellation and stale-response handling
  • Persistent multi-chat system with isolated API sessions
  • Futuristic neon desktop interface and native window controls
  • Local chat search, rename, delete, export, and import
  • Markdown and polished code rendering
  • Adjustable chat, sidebar, composer, theme, glow, density, startup, and privacy settings
  • Performance mode, status-poll controls, and long-chat render limits
  • ChudGPT-Public status, timeout, cancellation, and offline handling
  • Separate Windows, macOS, and Linux packages

ChudGPT-Public is experimental. Responses may be inaccurate or broken.

Full Changelog: https://github.com/ASTRA228b/ChudGPT-Public/compare/desktop-v0.2.0...desktop-v0.2.1

BETA / PRERELEASE

ChudGPT Desktop desktop-v0.2.0

desktop-v0.2.0 · 2026-08-13

Release notes

ChudGPT Desktop desktop-v0.2.0

The first native desktop client for ChudGPT-Public.

  • Persistent multi-chat system with isolated API sessions
  • Futuristic neon desktop interface and native window controls
  • Local chat search, rename, delete, export, and import
  • Markdown and polished code rendering
  • Appearance, chat, startup, and privacy settings
  • ChudGPT-Public status, timeout, cancellation, and offline handling
  • Separate Windows, macOS, and Linux packages

ChudGPT-Public is experimental. Responses may be inaccurate or broken.

Full Changelog: https://github.com/ASTRA228b/ChudGPT-Public/compare/desktop-v0.1.4...desktop-v0.2.0

BETA / PRERELEASE

ChudGPT Desktop desktop-v0.1.4

desktop-v0.1.4 · 2026-08-13

Release notes

ChudGPT Desktop desktop-v0.1.4

The first native desktop client for ChudGPT-Public.

  • Persistent multi-chat system with isolated API sessions
  • Futuristic neon desktop interface and native window controls
  • Local chat search, rename, delete, export, and import
  • Markdown and polished code rendering
  • Appearance, chat, startup, and privacy settings
  • ChudGPT-Public status, timeout, cancellation, and offline handling
  • Separate Windows, macOS, and Linux packages

ChudGPT-Public is experimental. Responses may be inaccurate or broken.

Full Changelog: https://github.com/ASTRA228b/ChudGPT-Public/commits/desktop-v0.1.4

Public GitHub metadata is cached for up to an hour. Saved snapshots are used during outages. Nothing here verifies current-game compatibility.