Skip to content

Bootcamp/Euclid (JonasThamane): Week 6 - Frontier Model Price Estimation#5

Open
NathiJonas wants to merge 2 commits into
mainfrom
NathiJonas-patch-6
Open

Bootcamp/Euclid (JonasThamane): Week 6 - Frontier Model Price Estimation#5
NathiJonas wants to merge 2 commits into
mainfrom
NathiJonas-patch-6

Conversation

@NathiJonas
Copy link
Copy Markdown
Owner

Summary

Component Original (OpenAI) This notebook (Anthropic)
LLM GPT-4.1-nano (fine-tuned) Claude Haiku (few-shot)
Training data 60 examples → JSONL → upload → training job 60 examples → JSONL → injected into system prompt
Inference Fine-tuned model endpoint Claude API with few-shot system prompt
Evaluation Tester class + Plotly charts Identical Tester class + Plotly charts
Dataset ed-donner/items_lite (HuggingFace) Same

Key takeaways

  • Few-shot prompting with 60 examples is a strong substitute for fine-tuning on small datasets
  • The JSONL preparation pipeline is identical and future-proof — if Anthropic releases a fine-tuning API, the same files can be uploaded directly
  • Swap claude-haiku-4-5-20251001claude-sonnet-4-6 for higher accuracy at higher cost
  • Swap MODEL and N_TRAIN at the top of the notebook to experiment
Screenshot 2026-03-08 214020 Screenshot 2026-03-08 214056 Screenshot 2026-03-08 214115

@NathiJonas
Copy link
Copy Markdown
Owner Author

@ranskills

@ranskills
Copy link
Copy Markdown

Thanks, @NathiJonas

REQUESTED CHANGES

  1. Clear the outputs from the notebook

Fixed the outputs issue.
@NathiJonas
Copy link
Copy Markdown
Owner Author

Thanks, @NathiJonas

REQUESTED CHANGES

  1. Clear the outputs from the notebook

Fixed the output issue. @ranskills

@ranskills
Copy link
Copy Markdown

Thanks, @NathiJonas

Open the PR

@NathiJonas NathiJonas marked this pull request as ready for review March 9, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants