<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Omage</title>
    <description>The latest articles on DEV Community by Omage (@omagepl).</description>
    <link>https://dev.to/omagepl</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4014861%2Fa5b84a90-1157-4e51-a9d5-b0ce3ae7cee4.jpg</url>
      <title>DEV Community: Omage</title>
      <link>https://dev.to/omagepl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/omagepl"/>
    <language>en</language>
    <item>
      <title>Building Omage — AI-First Python Library. Making PyTorch feel like pseudocode. Open source enthusiast.</title>
      <dc:creator>Omage</dc:creator>
      <pubDate>Sat, 04 Jul 2026 10:13:30 +0000</pubDate>
      <link>https://dev.to/omagepl/building-omage-ai-first-python-library-making-pytorch-feel-like-pseudocode-open-source-5egc</link>
      <guid>https://dev.to/omagepl/building-omage-ai-first-python-library-making-pytorch-feel-like-pseudocode-open-source-5egc</guid>
      <description>&lt;h1&gt;
  
  
  Omage: Build AI Models in 5 Lines of Python
&lt;/h1&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;PyTorch is powerful but verbose. Training a simple classifier takes 50+ lines of boilerplate code.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;Omage&lt;/strong&gt; — a high-level Python library that abstracts PyTorch into readable, concise code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before (PyTorch)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
import torch
import torch.nn as nn
import torch.optim as optim

class Model(nn.Module):
    def __init__(self):
        super().__init__()
        self.layers = nn.Sequential(
            nn.Linear(128, 64),
            nn.ReLU(),
            nn.Dropout(0.2),
            nn.Linear(64, 10)
        )

    def forward(self, x):
        return self.layers(x)

model = Model()
optimizer = optim.Adam(model.parameters(), lr=0.001)
criterion = nn.CrossEntropyLoss()

# ... 30 more lines for training loop

##After (Omage)

import omage as og

ai = og.model(
    type="classifier",
    layers=[og.dense(128), og.dropout(0.2), og.dense(10)],
    optimizer=og.adam(lr=0.001),
    loss=og.cross_entropy(),
)
ai.train(data, epochs=10)

##Features

Auto GPU detection — runs on CUDA, MPS, or CPU automatically

Model Zoo — load ResNet, GPT-2, BERT, YOLO in one line

CLI —  omage run ,  omage compile ,  omage zoo list 

##Installation

pip install git+https://github.com/Omage-Python-Library/Omage.git

##Quick Start

import omage as og

data = og.load("data.csv").clean().normalize().split(0.8)

model = og.model(
    type="classifier",
    layers=[og.dense(128), og.dense(10)],
)
model.train(data, epochs=10)
model.save("model.omg")

##Links

GitHub: github.com/Omage-Python-Library/Omage

##Feedback

This is v0.1.1 (alpha). Would love feedback from the community!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>machinelearning</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
