aazo11
aazo11 on Hacker News
Anyone interested in von Newmann should read The Maniac by Benjamin Labatut
I tested on-device LMs (Gemma, DeepSeek) across prompt cleanup, PII redaction, math, and general knowledge on my M2 Max laptop using LM Studio + DSPy.
Some observations
- Gemma-3 is the best model for on-device inference
- 1B models look fine at first but break under benchmarking
- 4B can handle simple rewriting and PII redaction. It also did math reasoning surprisingly well.
- General knowledge Q&A does not work with a local model. This might work with a RAG pipeline or additional tools
I plan on training and fine-tuning 1B models to see if I can build high accuracy task specific models under 1GB in the future.
Posted by
aazo11 on Wednesday May 21, 2025 @12:39PM
from the medium.com dept.
Posted by
aazo11 on Tuesday April 29, 2025 @12:56PM
from the metr.org dept.
This is a huge unlock for on-device inference. The download time of larger models makes local inference unusable for non-technical users.
A better solution would train/finetune the smaller model from the responses of the larger model and only push to the inference to the edge if the smaller model is performant and the hardware specs can handle the workload?
Thanks for calling that out. It was 32GB. I updated the post as well.
Very interesting. I had not thought about gaming at all but that makes a lot of sense.
I also agree the goal should not be to replace ChatGPT. I think ChatGPT is way overkill for a lot of the workloads it is handling. A good solution should probably use the cloud LLM outputs to train a smaller model to deploy in the background.
They look awesome. Will try it out.
Exactly. Why does this not exist yet?
By "too hard" I do not mean getting started with them to run inference on a prompt. Ollama especially makes that quite easy. But as an application developer, I feel these platforms are too hard to build around. The main issues being: getting the correct small enough task specific model and how long it takes to download these models for the end user.
Posted by
aazo11 on Monday April 21, 2025 @12:42PM
from the medium.com dept.
I spent a couple of weeks trying out local inference solutions for a project. Wrote up my thoughts with some performance benchmarks in a blog.
TLDR -- What these frameworks can do on off the shelf laptops is astounding. However, it is very difficult to find and deploy a task specific model and the models themselves (even with quantization) are so large the download would kill UX for most applications.
Great question! The purpose of github-assistant is to showcase the technologies that make it easy to build a tool/feature like this, not necessarily for it to be a stand-alone service. With dlt/Relta/LangGraph/assistant-ui we spin this up in about 10 days. For example:
- The GitHub graphql API limits to 100 items to be queried at a time and has pretty opaque secondary rate limits. Building this with cURL would take effort. dlt handles all this complexity to set up a robust pipeline by providing a connector to the GitHub API.
- Creating semantic layers manually from a relational dataset and leveraging it in a text-to-sql pipeline to prevent hallucinations (similar to those we highlighted in our Medium post) would take lots of manual effort, which Relta streamlines.
- Creating a chat front-end with charts was made easy by assistant-ui
Hope this makes sense.
Yes in the future. We share the source code in both commercial and non-commercial engagements already. Drop me a line at amir [at] relta.dev if interested.
No this currently only answers questions from the GitHub graphql API.
Was able to reproduce and pushed an update. Thanks for calling this out.
Hi -- strange that didn't work. Overall, the semantic layer is designed to provide very tight guardrails and not hallucinate. You can see the agent suggest changes to the semantic layer if you give the produced answer a thumbs down.
The idea is for the system to provide answers that have close to 100% accuracy, but make it a single click for developers to to improve the semantic layer.
Posted by
aazo11 on Saturday December 21, 2024 @07:41PM
from the show-hn dept.
https://github.com/reltadev/github-assistant
Simon(sfarshid) and I spend a lot of time on GitHub. As data nerds we put together a quick tool to explore your repository’s data.How it works:- Data Loading: We use dlt to pull data (issues, PRs, commits, stars) from GitHub- Semantic Layer: Relta wraps the underlying dataset into a semantic layer so the LLM doesn’t hallucinate.- Text-to-SQL: A text-to-SQL agent transforms your plain-English...
There are organizations using Dataherald in production right now.
The latency is ~20-30s and it takes some set up, so as long as those are not blockers it can be used in prod.
Yes when you connect Dataherald to a DB it scans it and you can do exploratory queries.
ORMs generally map around entities and dimensions. Users generally ask about metrics and measures, which can be expressed in aggregations and group bys.
How ould the NLP+ORM system do this?
While the engine response is not accurate all the time, the engine returns a confidence score. We have never encountered cases where a deployment with necessary training data indicates a .9 confidence score on an incorrectly generated SQL.
Tables, columns and views are scanned at configuration time (or based on an API trigger) and stored in the data store and a vector store, not on every run.
They are then retrieved and injected based on relevance to the query.