Zing Forum

Reading

AIME: Fine-Tuning Large Models with Personal iMessage History to Create a Custom AI Chat Style

This article introduces the AIME project, which extracts macOS iMessage chat history, uses Claude for data processing and formatting, and finally fine-tunes the Gemma 4 model via QLoRA to enable AI to mimic the user's personal chat style.

个性化AIiMessageGemma 4QLoRA模型微调聊天风格AWS BedrockClaude数据隐私
Published 2026-04-16 00:39Recent activity 2026-04-16 00:52Estimated read 5 min
AIME: Fine-Tuning Large Models with Personal iMessage History to Create a Custom AI Chat Style
1

Section 01

AIME Project Introduction: Creating a Custom Chat Style AI with Personal iMessage History

The AIME project extracts macOS iMessage chat history, processes and formats the data with Claude, and fine-tunes the Gemma 4 model using QLoRA technology to create a personalized AI that mimics the user's personal chat style. This project is an end-to-end solution covering the entire workflow of data extraction, processing, and training.

2

Section 02

Background: The Rise and Demand for Personalized AI

With the improvement of large model capabilities, users expect AI to have personal styles (slang, emojis, tone differences, etc.). Traditional general AI assistants have standardized tones and lack personality; the AIME project provides a solution to extract style features from personal chat records and fine-tune models.

3

Section 03

Methodology: AIME's End-to-End Workflow and Technical Highlights

Data Pipeline: Extract macOS iMessage database records → Claude splits conversations → Relationship classification (partner/friend/family, etc.) → Format conversion to dialogue JSONL → Data review and cleaning → QLoRA fine-tuning of the Gemma 4 31B model. Technical Highlights: Native macOS integration (requires disk access permission), Claude-driven intelligent processing, breakpoint resume mechanism, relationship-aware training data (annotated with relationship types).

4

Section 04

Data Privacy and Security Considerations

  • Local-first architecture: Data is only sent to AWS when Claude is called, and users control their data;
  • Automatic PII desensitization: Identifies and desensitizes sensitive information such as emails and addresses during the cleaning phase;
  • Editable relationship mapping: Users can manually review and modify contacts/relationship_map.json.
5

Section 05

Practical Significance and Application Scenarios

  • Personal AI assistant: Reply to messages and write emails in the user's style;
  • Style transfer research: Provide data for studies on language style and social relationships;
  • Creative writing assistance: Help writers create dialogues that fit character settings;
  • Social skill training: Gain insights by analyzing expression methods in different relationships.
6

Section 06

Limitations and Challenges

  • Platform limitations: Only supports macOS and iMessage;
  • Computational cost: High cloud GPU training fees;
  • Data quality dependency: Model performance is affected by the quantity and diversity of chat records;
  • Privacy trade-off: Requires trust in AWS's privacy policy (Claude processing relies on cloud services).
7

Section 07

Future Development Directions

  • Support for more messaging platforms (WhatsApp, WeChat, etc.);
  • Incremental training: Regularly update the model with new messages;
  • Hybrid personality model: Combine multiple personal styles;
  • Fine-grained style control: Dimensions such as emotional state and formality level.
8

Section 08

Conclusion: A Pragmatic Path to Personalized AI

The AIME project demonstrates a feasible prototype for extracting style features from personal data. Although it has platform limitations and privacy considerations, it provides a workable solution for the vision of "AI being like oneself". With the improvement of local small model capabilities and fine-tuning technology, personalized AI solutions will become more popular.