GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - ironsquishy/ironsquishy.ai: my ai server code

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
configs
configs
 
 
data
data
 
 
deploy
deploy
 
 
makefiles
makefiles
 
 
prompts
prompts
 
 
scripts
scripts
 
 
utils
utils
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
Dockerfile.cuda
Dockerfile.cuda
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
requirements-cuda.txt
requirements-cuda.txt
 
 
requirements-dev.txt
requirements-dev.txt
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

ironsquishy.ai

A modular framework for training, evaluating, and deploying custom LLM agents using LoRA / QLoRA across CUDA, macOS (MPS), and CPU environments.


๐Ÿš€ Overview

This project enables you to:

  • Fine-tune open-source LLMs (Gemma-based)

  • Run local inference with or without adapters

  • Support multiple environments:

    • NVIDIA CUDA (recommended)
    • Apple Silicon (MPS)
    • CPU fallback
  • Export models to GGUF (llama.cpp / edge deployment)


๐Ÿ“ฆ Repository Structure

ironsquishy.ai/
โ”œโ”€โ”€ Makefile        # Primary workflow commands
โ”œโ”€โ”€ Dockerfile      # Containerized environment
โ”œโ”€โ”€ configs/        # Base + environment configs
โ”œโ”€โ”€ scripts/        # Training, inference, evaluation
โ”œโ”€โ”€ utils/          # Shared runtime + helpers
โ”œโ”€โ”€ data/           # Raw + processed datasets
โ”œโ”€โ”€ prompts/        # System prompts
โ”œโ”€โ”€ adapters/       # LoRA adapters
โ””โ”€โ”€ requirements*.txt

โš™๏ธ Local Setup (Recommended First)

1. Create virtual environment

python -m venv .venv
source .venv/bin/activate
pip install -U pip

2. Install dependencies

Base

pip install -r requirements.txt

CUDA (recommended)

pip install -r requirements-cuda.txt

๐Ÿฉบ Environment Check

make doctor

Use this before running anything.


โšก Makefile Workflow

Show commands

make help

Test base model (IMPORTANT)

make base-infer DEVICE=mps PROMPT="Explain caching"

Prepare data

make prepare-data

Train

make train DEVICE=cuda

Inference (adapter)

make infer DEVICE=cuda PROMPT="How do I design a scalable API?"

Evaluate

make eval DEVICE=cuda

Merge adapter

make merge

Export GGUF

make export

๐Ÿง  Config System

Configs use inheritance.

configs/base/training.yaml
configs/base/inference.yaml

configs/training/cuda.yaml
configs/training/mps.yaml
configs/training/cpu.yaml

configs/inference/cuda.yaml
configs/inference/mps.yaml
configs/inference/cpu.yaml

๐Ÿงช Debugging Tips

Run without adapter

make base-infer DEVICE=cpu PROMPT="What is caching?"

Common issues

  • Adapter mismatch โ†’ retrain
  • CUDA missing โ†’ install toolkit
  • Mac slow โ†’ expected (no 4-bit)
  • NaN outputs โ†’ disable sampling

๐Ÿณ Docker (Optional but Recommended for Consistency)

Docker provides a reproducible environment and avoids dependency issues.


1. Create .env

DEVICE=cpu
PROMPT=Explain caching in distributed systems
BASE_MODEL=google/gemma-4-E2B-it
TRANSFORMERS_CACHE=/app/.cache

2. Build image

docker build -t ironsquishy-ai .

3. Run environment check

docker run --rm -it \
  --env-file .env \
  -v "$(pwd):/app" \
  ironsquishy-ai \
  make doctor

4. Run inference

docker run --rm -it \
  --env-file .env \
  -v "$(pwd):/app" \
  ironsquishy-ai \
  make infer

5. Train

docker run --rm -it \
  --env-file .env \
  -v "$(pwd):/app" \
  ironsquishy-ai \
  make train

6. Override variables

docker run --rm -it \
  --env-file .env \
  -e DEVICE=cuda \
  -v "$(pwd):/app" \
  ironsquishy-ai \
  make infer PROMPT="Explain vector databases"

๐Ÿง  Notes on Docker

  • .env is passed via --env-file
  • -v $(pwd):/app mounts your project (no rebuild needed)
  • Use CUDA Docker separately if needed (--gpus all)

๐Ÿ”ฅ Recommended Workflow

1. make doctor
2. make base-infer
3. make prepare-data
4. make train DEVICE=cuda
5. make infer DEVICE=cuda
6. make eval
7. make merge
8. make export

โš ๏ธ Important Rules

  • Adapter must match base model
  • Prompt format must match training
  • CUDA required for real training
  • Mac is for debugging only

๐Ÿงญ Future Goals

  • GGUF optimization
  • OpenClaw integration
  • Multi-model support

๐Ÿ‘จโ€๐Ÿ’ป Author

Allen Space Project: ironsquishy.ai


About

my ai server code

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.