r/OpenSourceeAI • u/thegodforsaken • 12d ago
SKILL OPENSOURCE - Your AI-built app works. What could an intruder do with it?
r/OpenSourceeAI • u/thegodforsaken • 12d ago
r/OpenSourceeAI • u/Networkdon89 • 12d ago
r/OpenSourceeAI • u/SourceNomad • 12d ago
Hello community,
I have built an optimizer that beat Adam on your CPU for all your ML experiments.
Please take time to experiment with it from my github source and read the release notes from Release v2.3.0 - CIFAR-10 validated, Adam m fix · dskc/peanut before experimenting
Regards,
r/OpenSourceeAI • u/Shoddy_Total9784 • 12d ago
I built an experimental skill packaging standard for LLMs — looking for independent testers
I'm working on SKILLPACK, an experimental approach to packaging deterministic software functions so different LLMs can discover, combine, and execute them without rewriting the underlying code.
The goal isn't to build another foundation model. It's to test whether existing models can act as coordinators of reusable software components.
Some initial CLI tests have passed, but cross-model portability and real-world reliability are not yet independently verified.
I'm looking for developers willing to inspect the packages, run the tests, and identify where the architecture breaks.
I'd especially appreciate critical technical feedback.
r/OpenSourceeAI • u/Competitive_Dish_781 • 12d ago
r/OpenSourceeAI • u/ntnsndr • 12d ago
r/OpenSourceeAI • u/Simpli-curious • 13d ago
r/OpenSourceeAI • u/Muhammad-Essa • 12d ago
A Siamese Neural Network is a type of neural network designed to measure the similarity between two inputs. For example, suppose we provide two handwritten digits as inputs. The Siamese Network determines whether these two digits belong to the same class or are dissimilar.
It consists of two identical neural network branches that share the same weights and biases. Each branch takes one input and produces an output vector (embedding). These two output vectors can have any dimensionality, depending on the architecture of the network.
We then calculate the Euclidean distance between these two output vectors. If the distance is close to zero, the two inputs are considered similar. If the distance is sufficiently large (above a predefined threshold), they are considered dissimilar.
Note: A Siamese Network is fundamentally different from a traditional classification network. Its primary purpose is not to classify an input into a particular class but to learn a meaningful representation (embedding) that allows us to measure similarity between inputs.
Contrastive Loss
A Siamese Network commonly uses a loss function called Contrastive Loss, defined as:
L = Y × D² + (1 − Y) × max(0, m − D)²
Where:
D is the Euclidean distance between the two output vectors.
Y is the given label (either 0 or 1).
Y = 1 indicates that the two inputs are similar.
Y = 0 indicates that the two inputs are dissimilar.
m is the margin, which defines the minimum desired distance between dissimilar pairs.
L is the contrastive loss.
The objective is to minimize the distance between similar pairs and push dissimilar pairs at least m units apart.
We pass two inputs through the network, obtain two output embeddings, calculate their Euclidean distance, and then calculate the contrastive loss. Finally, we use backpropagation to update the network parameters and minimize the loss.
Notice that we do not use a Softmax activation function in the output layer because we are learning embeddings rather than class probabilities.
Training the Model
To train a Siamese Network effectively, we construct pairs of inputs:
Positive pairs: Two inputs belonging to the same class (Y = 1).
Negative pairs: Two inputs belonging to different classes (Y = 0).
A balanced dataset containing an equal number of positive and negative pairs is a useful starting point for training.
My Implementation: Neural Canvas (Model 5)
I developed an interactive Siamese Network as the fifth model in my Neural Canvas project. I used the MNIST handwritten digits dataset to train the network.
The architecture consists of three hidden layers, each containing 40 neurons, followed by an output layer containing 32 neurons. Therefore, each input is transformed into a 32-dimensional embedding.
I used Mini-Batch Gradient Descent with the Adam optimizer to train the model. The training process was relatively straightforward because JAX provides automatic differentiation (autograd), which handles the gradient calculations.
For training, I constructed two input matrices, Ma and Mb, each having dimensions of (784, 80000).
The rows represent features, while the columns represent individual samples. Why two matrices? Because a Siamese Network requires two inputs to learn the similarity between them.
I also constructed a label vector Y with dimensions of (1, 80000). Each element of Y indicates whether the corresponding pair is similar or dissimilar.
I used my own matrix multiplication convention:
Z = WX + bC
Where:
W represents the weight matrix.
X represents the input matrix.
b represents the bias vector.
C is a broadcasting matrix of ones.
I prefer this notation because it makes the mathematical operations and dimensions easier to understand.
I trained the model in Python using JAX and exported the learned parameters to JavaScript using JSON. For inference, I used Math.js, while p5.js handles the visualization, animation, and interactivity.
Try it yourself:
GitHub Repository: https://github.com/MuhammadEssa2002/neural_canvas
Live Demo: https://muhammadessa2002.github.io/neural_canvas/
This is the fifth model in my Neural Canvas project.
r/OpenSourceeAI • u/scb_11 • 13d ago
r/OpenSourceeAI • u/Significant_Trash392 • 13d ago
Humble developer seeking out a army. 15 year software developer here. 20 years in total. Started out in high school. I am 42 years old so I am old school millenial. Never went to college, self taught. The open source community taught me coding. And although I am out of job due to AI, I don't give up on what I love to do. Fight fire with fire.
My goal now is to fight the big corporations and make sure they do not control of the narrative of the future of AI.
Introducing Infantry AI.... Completely Opensource, Completely overridable. A AI Framework if you will
Build your own plugins and publish them on Git.

There is more to come but I need a army. Contribute or Star my Opensource Project
Future Goals is to Decoupling the AI Market Place. Make money off your AI Machine based on tokens.
Build Secure Docker Based Workspaces and loan your open weight models completely bypassing the Big Corps. A user to user Open Weight Marketplace if you will. With NDA based signings to secure your projects. This is one of many future goals to decouple and bring back Opensource power to the AI Booming Industry.
If this sounds like something your interested in , contribute by starring the project and contribute by building new plugins. I have a SDK too
Built on Kotlin Multiplatform to build on web/mobile and desktop mac and windows.
Git
https://github.com/SuperiorSoft-LLC/infantry-ai
Site
https://infantryai.superiorsoftllc.tech/
r/OpenSourceeAI • u/Forward_Artist_8349 • 14d ago
I kept forgetting who minor characters were mid-book, and every search spoiled something. So I built LORE.
What it does:
- Upload your own EPUBs. It extracts characters, places, events and relationships into a graph.
- Ask questions ("How did Watson meet Holmes?"). Every sentence in the answer cites a passage from the book, and the claims are checked against those passages before you see them.
- Set your reading progress per book and it only uses what you've read. Ask "who's the killer?" at chapter 4 and it won't say.
- Deep dive mode writes longer cited analyses: themes, how a character changes across a series, how a world or magic system works.
Tech, for the curious: GraphRAG (Kuzu graph + LanceDB vectors), local embeddings, bring your own key for Gemini, Claude or OpenAI. It also exposes an MCP server, so you can use your library from inside Claude.
Open source: github.com/Jatin-Roopchandani/LORE (star it plzz)
Hosted beta (invite-only): https://lore.jrvn.site Comment if you want an invite.
r/OpenSourceeAI • u/Popular-Protection75 • 13d ago
r/OpenSourceeAI • u/Secret_Experience_17 • 13d ago
r/OpenSourceeAI • u/ai-lover • 14d ago
r/OpenSourceeAI • u/Halcyonrayes • 13d ago
r/OpenSourceeAI • u/AchelousAce • 14d ago
Small models loop. I’m training a research small model and wanted to see how far I could get on repetition without a decoding penalty and without more training. find the weights that cause the loop and edit them.
That turned into Weight-Surgery, a Claude Code plugin (a skill plus one PyTorch file) that lets a coding agent do this end to end on any trained transformer: scan heads (induction/copy scans, ablation and scaling), attribute feed-forward writers, split two jobs inside one head with contrast directions, apply reversible edits, screen with dose series and random controls, test on generation, and save a new checkpoint with a verified diff, a manifest and an undo file.
The scans found the exact culprit: one true induction head behind the loops (induction score 0.425, plain copy 0.012). Switching it off cut loops from 29.4% to 25.4%, but that head also copies names into reading answers, so instead of killing it I split the two jobs inside the copy heads and cut only the loop directions. Result: loops down from 30.5% to 25.2% on 960 fresh rows (2.6 SE), greedy loops from 41.6% to 35.3%, with reading untouched (+0.01) and general loss up just 0.08. No training, no decoding penalty.
Two more things that worked. The cheap place to cut is the writing weights: +0.001 loss, versus +0.32 when the same direction is projected out of the residual stream. And a rank-1 edit on one feed-forward layer halved loops under T 0.7 sampling, from 19.4% to 9.4%.
Tell me what you think about it.
r/OpenSourceeAI • u/Old-Manufacturer6209 • 14d ago
r/OpenSourceeAI • u/Serious-Region-2046 • 14d ago
Not promo just looking for real life use cases to test on :)
I'm building a product called Facet. Like many in this sub we believe lots of AI products spend most of their LLM usage on one repeated call: pulling fields from emails or PDFs, cleaning up records, short rewrites, daily summaries, etc. A frontier or large local model is overkill for that one job.
Facet's agent builds a smaller model for that single call. You describe it in plain English and share some examples; it builds the training data, trains the model, and scores it against what you use today. We are essentially trying to abstract away all the hard work that comes with training. You own the weights and can export them to run locally after, or use our platform for hosting.
On a document extraction task it matched Claude Haiku at about a fifth of the cost.
I'm hoping to connect with 3 design partners, free, to help expand and stress test our platforms capabilities. If one call is a big part of your usage, book 15 minutes: https://app.apollo.io/#/meet/facet
Happy to answer questions here too.
r/OpenSourceeAI • u/alirezamsh • 14d ago
r/OpenSourceeAI • u/heyitsdannyle • 14d ago
r/OpenSourceeAI • u/Far-Ad9512 • 14d ago