Python

16 articles tagged with "Python"

Part 1: The Beginning and the Big Picture -- The Day ChatGPT Beat the Fund Managers Series

Part 1: The Beginning and the Big Picture -- The Day ChatGPT Beat the Fund Managers

How an experiment where ChatGPT outperformed professional fund managers inspired me to build Senrigan, an AI stock price prediction service powered by a fine-tuned LLM.

Read →
Part 2: The Local GPU Challenge and Defeat -- Taking on an 8B Model with 6 GB of VRAM on the RTX 3060 Series

Part 2: The Local GPU Challenge and Defeat -- Taking on an 8B Model with 6 GB of VRAM on the RTX 3060

My first attempt at fine-tuning ELYZA Llama-3-JP-8B on a local RTX 3060 GPU, and the hard lessons learned about VRAM limitations when training large language models.

Read →
Part 3: LoRA and Quantization Explained -- The Techniques That Make LLMs Lighter Series

Part 3: LoRA and Quantization Explained -- The Techniques That Make LLMs Lighter

A deep dive into LoRA, quantization, QLoRA, and SFTTrainer -- the key techniques that enable fine-tuning large language models on consumer hardware, validated through a Mount Fuji proof-of-concept experiment.

Read →
Part 4: Stock Prediction on Colab -- Trial and Error with Three Models Series

Part 4: Stock Prediction on Colab -- Trial and Error with Three Models

Fine-tuning ELYZA 8B and LLM-jp 7.2B for stock price prediction on Google Colab, the accuracy challenges encountered, and why I ultimately pivoted to the OpenAI API.

Read →
Part 6: Training Data Design -- How I Integrated Five Types of Data Series

Part 6: Training Data Design -- How I Integrated Five Types of Data

A detailed look at how I designed training data for stock price prediction, integrating company information, news, stock prices, financials, and macroeconomic indicators into a structured JSON format for LLM fine-tuning.

Read →
Part 5: OpenAI API Fine-Tuning -- The Final Solution That Took Just 8 Minutes Series

Part 5: OpenAI API Fine-Tuning -- The Final Solution That Took Just 8 Minutes

How pivoting to OpenAI API fine-tuning on gpt-4o-mini achieved stable JSON output and sufficient accuracy in just 8 minutes, after months of struggle with open-source models.

Read →
Part 8: MySQL to Firestore Migration and Production -- The Road from RDB to NoSQL Series

Part 8: MySQL to Firestore Migration and Production -- The Road from RDB to NoSQL

The challenges of migrating from MySQL to Firestore for a production web service, including index design, upsert strategies, document ID design, and cost optimization for the Senrigan stock prediction platform.

Read →