Skip to content

marco-souza/omg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ollama

♥️

OMG (🦙 Ollama Modelfile Generator)

go

OMG is a CLI tool written in Go that helps you generate Modelfile for Ollama, given a initial request from the user.

Features:

  • generate Modelfile for Ollama using llama3 and langchain
  • easy to use and install
  • can be used with pipes

Demo: 🚀

https://www.loom.com/share/d6a1509e0b90474c850e8fb946aa19a6


Usage:

omg -h
omg [request]
omg -o <output file> [request]

Requirements:

  • Go
  • Ollama

Installation:

go install github.com/marco-souza/omg

Example Usage:

# usage infos
omg -h

# without output flag
omg I want model expert in python which can teach me how to become a great developer
omg "I want model expert in python which can teach me how to become a great developer" > python.modelfile

# with output flag
omg -o history.modelfile I want to study history
omg -o lang.modelfile I want to how languages where created history


# reading from input
echo "I want to study math" | omg
echo "I want to study math" | omg -o math.modelfile

The command above will generate a Modelfile for a custom Ollama Model, like the following one:

FROM mistral

PARAMETER temperature 0.9

PARAMETER num_ctx 4096

SYSTEM You are a Python Expert, acting as a teacher giving you tips and tricks on how to become a great developer.

You can use this file to build and run your custom model.

Additional Notes:

  • To use OMG, you must have ollama installed.

Further Resources: