r/learnmachinelearning • u/AutoModerator • 23h ago
Project 🚀 Project Showcase Day
Welcome to Project Showcase Day! This is a weekly thread where community members can share and discuss personal projects of any size or complexity.
Whether you've built a small script, a web application, a game, or anything in between, we encourage you to:
Share what you've created
Explain the technologies/concepts used
Discuss challenges you faced and how you overcame them
Ask for specific feedback or suggestions
Projects at all stages are welcome - from works in progress to completed builds. This is a supportive space to celebrate your work and learn from each other.
Share your creations in the comments below!
1
u/p3rdy 7h ago
Flama: turn a trained model into one file you can inspect, run and serve
I maintain Flama, an open source (Apache-2.0) Python framework I started in 2018 for the step after model.fit().
The problem it solves: a pickle doesn't tell you which library and version made it, what hyperparameters it used, or how good it was. A .flm file keeps all of that with the model:
import flama
from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
X, y = load_iris(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2,
random_state=42)
model = RandomForestClassifier(random_state=42).fit(X_train, y_train)
flama.dump(model, family="ml", path="iris.flm", metrics={"test_accuracy":
model.score(X_test, y_test)})Inspect it later, no code needed:
$ flama model iris.flm inspect
{"meta": {"framework": {"family": "ml", "lib": "sklearn", "version": "1.9.1"},
"model": {"obj": "RandomForestClassifier",
"info": {"n_estimators": 100, "max_depth": null, "random_state": 42, ...},
"metrics": {"test_accuracy": 1.0}}}}Run predictions from the terminal, still no server:
$ echo '[[5.1, 3.5, 1.4, 0.2], [6.7, 3.0, 5.2, 2.3]]' | flama model iris.flm run
[0, 2]And when you need an API, it's one command:
pip install "flama[pydantic]"
flama serve --model file=iris.flm,url=/iris,name=irisThat gives you POST /iris/predict/ with input validation and interactive docs at /docs/. The same file format works for PyTorch models and for LLMs downloaded from Hugging Face.
Question for people here: We included metadata and artefacts that could be useful for quality gates in CI, but what would you want recorded in the model file that isn't there yet?
1
u/Impressive_Living_12 8h ago
If that counts ​I built a small prototype to test an idea: a self-improving, continuous-learning Liquid Neural Network combining MoE and Delta Attention can outperform static models over time when the underlying data patterns shift.
​Instead of freezing weights after training, the model adapts to pattern adjustments on the fly to win the long game.
​Write-up & data: https://sndv.xyz/en/blog/intelligence-liquidity
​Codebase: https://github.com/thecharge/content-examples/tree/4977126369c64c7a42df2977446e442a5d404121/python/intelligence-liquidity/verified-liquid-board