Skip to content

feat(examples): migrate Ollama example from Llama 3 8B to Gemma 4 31B#2

Merged
jwesleye merged 1 commit intomainfrom
ollama-gemma4
Apr 18, 2026
Merged

feat(examples): migrate Ollama example from Llama 3 8B to Gemma 4 31B#2
jwesleye merged 1 commit intomainfrom
ollama-gemma4

Conversation

@unseriousAI
Copy link
Copy Markdown
Collaborator

Summary

  • Renames by_model/ollama/llama3/basicby_model/ollama/gemma4/basic
  • Updates model from llama3:8b to gemma4:31b in code and Cargo.toml
  • Adds GPU setup section to README with OLLAMA_NUM_GPU and OLLAMA_FLASH_ATTENTION instructions for both Windows (PowerShell) and Linux/macOS

Test plan

  • ollama pull gemma4:31b succeeds on target machine
  • cargo run in by_model/ollama/gemma4/basic completes without errors
  • GPU is utilized (verify via nvidia-smi or equivalent during run)

🤖 Generated with Claude Code

… with GPU docs

Renames by_model/ollama/llama3/basic → gemma4/basic, updates model to gemma4:31b,
and adds GPU setup instructions (OLLAMA_NUM_GPU, OLLAMA_FLASH_ATTENTION) for Windows
and Linux/macOS.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@unseriousAI unseriousAI requested a review from jwesleye as a code owner April 18, 2026 22:19
@jwesleye jwesleye merged commit 00cd553 into main Apr 18, 2026
1 check passed
@jwesleye jwesleye deleted the ollama-gemma4 branch April 18, 2026 22:21
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