https://github.com/marco-souza/omg
IA-powered Ollama Modelfile Generator
https://github.com/marco-souza/omg
generator ia modelfile ollama omg
Last synced: 10 days ago
JSON representation
IA-powered Ollama Modelfile Generator
- Host: GitHub
- URL: https://github.com/marco-souza/omg
- Owner: marco-souza
- Created: 2024-02-20T11:10:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-28T22:37:57.000Z (11 months ago)
- Last Synced: 2025-03-27T10:07:56.996Z (27 days ago)
- Topics: generator, ia, modelfile, ollama, omg
- Language: Go
- Homepage: https://github.com/marco-souza/omg
- Size: 33.2 KB
- Stars: 25
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
♥️
## OMG (🦙 Ollama Modelfile Generator)
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 [request]
```**Requirements:**
- Go
- Ollama**Installation:**
```
go install github.com/marco-souza/omg
```**Example Usage:**
```sh
# 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:
```Modelfile
FROM mistralPARAMETER 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](https://github.com/ollama/ollama?tab=readme-ov-file#customize-a-model).
**Additional Notes:**
- To use OMG, you must have ollama installed.
**Further Resources:**
- [Ollama Documentation](https://github.com/ollama/ollama)
- [Langchain Documentation](https://tmc.github.io/langchaingo/docs/)