// 03 / extract + fine-tune
Get GHoSTeD.
Grounded Host State Transfer & Distillation. Turn your exported AI conversation history into readable Soul Shard PDFs, clean RAG Markdown, ShareGPT and DPO training datasets, and a 1-click Gemma 4 Google Colab fine-tuning notebook.
Live Web App at ghosted.wildemindpress.com · Python 3.11 / Unsloth · Gemma 4, Qwen 3, Llama 3 & Mistral
// what it builds / v2
From cloud export to local weights.
- V1.1 Soul Shards: Generates readable, timestamped PDF volumes of your extracted user and assistant interactions.
- V2 GHoSTeD Training Bundle: Outputs
rag_history.mdwith the full chronological archive ready for GHostPCP,training_data.jsonlwith a configurable recent-slice slider (default 40%) in ShareGPT format, anddpo_candidates.jsonlwith up to 400 clean preference seeds. - 1-Click Google Colab Fine-Tuning: Includes
Get_GHoSTeD_Colab.ipynbwith Free T4 (gemma-4-E4B-it) and Pro L4/A100 (gemma-4-12b-it) presets, automatic low-VRAM safety clamping, label masking verification, and GGUF export ready to mount in GHostPCP or GHoSt Terminal. - Multi-Model Chat Templates: Automatically configures chat templates and response-only masking for Gemma 4 (standard and thinking), Gemma 3, Qwen 2.5/3/3.5, Llama 3/3.1/3.2, and Mistral.
- Universal Export Parser: Accepts ChatGPT, Claude, Gemini Takeout (
.jsonor.html), Grok, and Character.AI exports across.json,.jsonl,.html, and.zipuploads.
// the field manual
Everything you need to extract and distill.
An overview of the Get GHoSTeD project README is shown below. Visit the Get GHoSTeD repository for source files and training scripts.

Get GHoSTeD
Grounded Host State Transfer & Distillation. Part of the GHoSt Suite from Wilde Mind Press.
See It in Action

Supported Uploads & Formats
The Streamlit app accepts .json, .jsonl, Gemini Takeout .html/.htm, and .zip files (up to 512 MB uncompressed in memory). The parser handles ChatGPT conversation mappings, Claude message lists, Gemini Takeout activity exports, and matching Grok and Character.AI schemas, sorting chronologically when timestamps are present.
V2 JSONL uses one ShareGPT record per interaction:
{"conversations":[{"from":"human","value":"..."},{"from":"gpt","value":"..."}]}dpo_candidates.jsonl exports up to 400 clean preference seeds from the recent slice (with "rejected" blank for a base-model pass before DPO or ORPO training):
{"prompt":"...","chosen":"...","rejected":""}Training & Model Support
Launch the 1-click Google Colab Notebook or run training/train_sft.py locally with Unsloth. Gemma 4 (unsloth/gemma-4-12b-it locally or on Pro L4/A100, and unsloth/gemma-4-E4B-it on Free T4) is recommended for persona fidelity, with automatic chat template and response-masking support for Gemma 4, Gemma 3, Qwen 2.5/3/3.5, Llama 3/3.1/3.2, and Mistral.
training/md_to_sharegpt.py also converts **USER:** / **AI:** Markdown logs such as rag_history.md and GHostPCP's ghost_pcp_*.md volumes into ShareGPT training pairs.
Run Locally
Using Python 3.10 to 3.12 (3.11 recommended for local Unsloth/CUDA), install requirements and launch Streamlit:
pip install -r requirements.txt
streamlit run app.pyRun the unit test suite:
python -m unittest discover -s tests -vData Handling
The app code does not intentionally write uploaded exports to permanent storage. The hosting platform controls server and session retention, and closing the page does not guarantee immediate deletion. Only upload data to a deployment whose operator you trust, or run Get GHoSTeD locally on your own machine.