Skip to content

Fine-tuning LLM to impersonate influencer's tweeting styles.

License

Notifications You must be signed in to change notification settings

naiwaaa/zata-agent

Repository files navigation

zata-agent

Fine-tuning LLM to impersonate influencer's tweeting styles.

screenshot

Requirements

  • Python 3.12
  • uv

How to Run

  1. Install dependencies
$ make install
  1. Run web app
$ username=trump
$ uv run zata serve --model /models/qwen2.5-0.5b-instruct_${username} --config ./config/${username}.toml

Development

Dataset preparation

# user to pull tweets from
$ username=Ashcryptoreal

# scrape tweets
$ zata scrape --site X --username ${username} --output .data/raw/${username}.parquet

# preprocess scraped tweets
$ zata data-prep --raw ./data/raw/${username}.parquet --output ./data/processed/${username}.parquet

Fine-tuning model

$ zata train --output ./models/qwen2.5-0.5b-instruct_$username --data ./data/processed/$username.parquet --config ./config/trump.toml

About

Fine-tuning LLM to impersonate influencer's tweeting styles.

Resources

License

Stars

Watchers

Forks