jbarrow
I wrote this to try and clear up what I think is a common misconception (speculative decoding is a free lunch), when the picture is more nuanced (and imo, interesting).
Show HN: Locus-v1, a dataset of 2.2M local laws and ordinances
https://huggingface.co/datasets/LocalLaws/LOCUS-v1
Wrote a paper (https://arxiv.org/abs/2606.19334) on how we collected and built the dataset. Just covers the United States.Happy to answer any questions!
I also think the attention approach (always attend to the image/prefix, with a sliding window for local context) is neat!
I do wish they updated their comparison table to include more recent work (that scores marginally better on OmniDocBench), like dots.mocr.
Gemma 12B, multitoken prediction, and official quants released. Feels like Google is putting real effort into this string of releases, and I'm very excited to see that!
Building a 1-Outlet, 4-GPU Workstation
Agents Have (Information) Needs
Comparing the architecture to Qwen3.5, it seems:
- fewer, wider layers
- mixing full attention and conv's, instead of the full+linear attention of Qwen3.5
- the vocab is about 1/4 the size
LFM2.5-350M: No Size Left Behind
I worked through what fp6 (e3m2) would look like, doing manual additions and multiplications, showing cases where the operations are non-associative, etc. and then I wanted something more rigorous to read.
For anyone interested in floating point numbers, I highly recommend working through fp6 as an activity! Felt like I truly came away with a much deeper understanding of floats. Anything less than fp6 felt too simple/constrained, and anything more than fp6 felt like too much to write out by hand. For fp6 you can enumerate all 64 possible values on a small sheet of paper.
For anyone not (yet) interested in floating point numbers, I’d still recommend giving it a shot.
What Every Computer Scientist Should Know about Floating-Point Arithmetic [pdf]
At the end of the day, I'm here because of all the thoughtful commenters and people sharing interesting stories.
I’ve been a monthly donor since ~the beginning when I was just an undergraduate, and I still read the stories and emails I receive. I’m glad that you opted for the steady growth path, and that you’ve made it a sustainable thing.
*this is incorrect per the author’s response, my apologies.
For instance, it goes into (nano)vLLM internals and doesn’t mention PagedAttention once (one of the core ideas that vLLM is based on)[1].
Also mentions that Part 2 will cover dense vs MoE’s, which is weird because nanovllm hardcodes a dense Qwen3 into the source.
Here are better (imo) explainers about how vLLM works:
- https://hamzaelshafie.bearblog.dev/paged-attention-from-firs...
- https://www.aleksagordic.com/blog/vllm
- https://huggingface.co/blog/continuous_batching
Aleksa’s blog is a bit in the weeds for my taste but it’s really worth working through.
A lot of the magic of vLLM happens in the PagedAttention kernels, which are really succinctly implanted in nanovllm. And the codebase is great and readable by itself!
—
For the non-ONNX models there are some inference tricks that generally improve performance, and potentially lowering confidence could help.
It's really gratifying to see people building on the work, and I love that it's possible to do browser-side/on-device.
That’s built on a dataset and paper I wrote called CommonForms, where I scraped CommonCrawl for hundreds of thousands of fillable form pages and used that as a training set:
https://arxiv.org/abs/2509.16506
Next step is training and releasing some DETRs, which I think will drive quality even higher. But the ultimate end goal is working on automatic form accessibility.
Releasing the dataset, paper, models, and (imo most importantly) simple/convenient tooling to automatically prepare any PDF.
Links: Repo: https://github.com/jbarrow/commonforms - Paper: https://arxiv.org/abs/2509.16506
Show HN: CommonForms – open models to auto-detect PDF form fields
Interesting to see a big provider entering this space. Originally swapped to Modal because big providers weren’t offering this (e.g. AWS lambdas can’t run on GPU instances). Assuming all providers are going to start moving towards offering this?
If the PDF hasn't been made accessible, you have to do a lot of inferencing based on the layout about how things are grouped and how they should flow if you want to be able to make meaningful edits. Not impossible (Acrobat does it), but very challenging.
It's part of the legacy of PDF as a format for presentation and print jobs, rather than typesetting.
Fwiw, I do see the issue with being unable to scroll down across both Safari and Chrome.
In addition, did you try the "enhanced" pipeline? It gives each field a meaningful name based on the label, which might help with accessibility.
PDF accessibility is a huge issue that _should_ be easily solved, but isn't, unfortunately.
Show HN: Automatically Turn PDFs into Fillable Forms
My hobby project is building a form filling assistant for complex forms, but it turns out that not every PDF form is digitally fillable. A lot of PDF forms are still made with the expectation that you print and fill them by hand. To fix this, I trained a series of models that detect where form fields _should _ exist, then built this utility to turn them into interactive forms.In my experience...
Qwen2.5 VL was trained on a special HTML format for doing OCR with bounding boxes. [1] The resulting boxes aren't quite as accurate as something like Textract/Surya, but I've found they're much more accurate than Gemini or any other LLM.
- 4o can't really do localization, and ime is worse than Gemini 2.0 and Qwen2.5 at document tasks
- 4o mini isn't cheaper than 4o for images because it uses a lot of tokens per image compared to 4o (~5600/tile vs 170/tile, where each tile is 512x512)
- o1 has support for vision but is wildly expensive and slow
- o3-mini doesn't yet have support for vision, and o1-mini never did
In my experience, I'd reach for Gemini 2.0 Flash over 4o in a lot of multimodal/document use cases. Especially given the differences in price ($0.10/million input and $0.40/million output versus $2.50/million input and $10.00/million output).
That being said, Qwen2.5 VL 72B and 7B seem even better at document image tasks and localization.
[1] https://notes.penpusher.app/Misc/Google+Gemini+101+-+Object+...
- the Vasa in Stockholm, Sweden is a ship dredged from the harbor and stabilized, sank in 1628
- the Mary Rose in Portsmouth, England is a Tudor ship that sank in 1545 that was raised and stabilized
In both cases a ton of work was done to stabilize and preserve the remains of the ships that is, imo, almost more interesting than the ship itself.