HNHacker News
TopNewBestAskShowJobs

gbickford

51 karma · joined January 31, 2024

submissionscomments
gbickford··on Gemini 2.0: our new AI model for the agentic era
Small models don't "know" as much so they hallucinate more. They are better suited for generations that are based in a ground truth, like in a RAG setup.

A better comparison might be Flash 2.0 vs 4o-mini. Even then, the models aren't meant to have vast world knowledge, so benchmarking them on that isn't a great indicator of how they would be used in real-world cases.

gbickford··on PaCMAP: Large-Scale Dimension Reduction with Both Global and Local Structure [pdf]
It's for visualizing datasets where fine-grained cluster details and broader relationships matter. There are example renderings in the paper.

From the README:

> PaCMAP (Pairwise Controlled Manifold Approximation) is a dimensionality reduction method that can be used for visualization, preserving both local and global structure of the data in original space. PaCMAP optimizes the low dimensional embedding using three kinds of pairs of points: neighbor pairs (pair_neighbors), mid-near pair (pair_MN), and further pairs (pair_FP).

> Previous dimensionality reduction techniques focus on either local structure (e.g. t-SNE, LargeVis and UMAP) or global structure (e.g. TriMAP), but not both, although with carefully tuning the parameter in their algorithms that controls the balance between global and local structure, which mainly adjusts the number of considered neighbors. Instead of considering more neighbors to attract for preserving glocal structure, PaCMAP dynamically uses a special group of pairs -- mid-near pairs, to first capture global structure and then refine local structure, which both preserve global and local structure. For a thorough background and discussion on this work, please read our paper.

gbickford··on Gliimly is a programming language for web services
> Create Hello World application:

> sudo mgrg -i -u $(whoami) helloworld

Why does it need sudo to compile?

gbickford··on Zamba2-7B
If you look in the `config.json`[1] it shows `Zamba2ForCausalLM`. You can use a version of the transformers library to do inference that supports that.

The model card states that you have to use their fork of transformers.[2]

1. https://huggingface.co/Zyphra/Zamba2-7B-Instruct/blob/main/c...

2. https://huggingface.co/Zyphra/Zamba2-7B-Instruct#prerequisit...

gbickford··on Dumped orange peel transformed a barren pasture (2017)
This article is from 2017
gbickford··on Why we no longer use LangChain for building our AI agents
This is true. Devs are looking for frameworks. See CrewAI who refuses to allow users to disable some pretty aggressive telemetry, yet they have a huge number of GH stars.

The abstractions are handy if you have no idea what you are doing but it's not groundbreaking tech.

https://github.com/joaomdmoura/crewAI/pull/402

gbickford··on StoryDiffusion: Long-range image and video generation
It's always disappointing when people publish things to GitHub without the intention of collaborating or sharing.
gbickford··on CoreNet: A library for training deep neural networks
I couldn't find any training code in the MXL examples.
gbickford··on CoreNet: A library for training deep neural networks
> Relationship with CVNets

> CoreNet evolved from CVNets, to encompass a broader range of applications beyond computer vision. Its expansion facilitated the training of foundational models, including LLMs.

We can expect it to have grown from here: https://apple.github.io/ml-cvnets/index.html

It looks like a mid-level implementations of training and inference. You can see in their "default_trainer.py"[1] that the engine uses Tensors from torch but implements its own training method. They implement their own LR scheduler and optimizer; the caller can optionally use Adam from torch.

It's an interesting (maybe very Apple) choice to build from the ground up instead of partnering with existing frameworks to provide first class support in them.

The MLX examples seem to be inference only at this point. It does look like this might be a landing ground for more MLX specific implementations: e.g. https://github.com/apple/corenet/blob/5b50eca42bc97f6146b812...

It will be interesting to see how it tracks over the next year; especially with their recent acquisitions:

Datakalab https://news.ycombinator.com/item?id=40114350

DarwinAI https://news.ycombinator.com/item?id=39709835

1: https://github.com/apple/corenet/blob/main/corenet/engine/de...

gbickford··on Optimize CSS with SAT Solving
It's a thing in Chrome Dev Tools now: https://developer.chrome.com/docs/devtools/coverage/
gbickford··on LlamaCloud and LlamaParse
There's gotta be somewhere in the middle. Vercel's movements feel a lot like the "Embrace, extend, and extinguish" playbook.

Maybe there is a class of developer out there that doesn't get spooked by that but it definitely has created an adversarial place for Vercel in my mind. I feel like I need to be careful when touching anything Vercel have touched so that I don't fall into a trap.

gbickford··on Localllm lets you develop gen AI apps on local CPUs
Llama.cpp is an inference engine. The author of llama.cpp designed gguf. Funcionary is a model that does function calling. You can download functionary weights in the gguf format and then run it using llama.cpp on low-end machines using CPU or GPU or a mix of both.
gbickford··on How we got fine-tuning Mistral-7B to not suck
Have you tried generating two sets of qapairs, one with bad answers, and using DPO?
gbickford··on Mistral CEO confirms 'leak' of new open source AI model nearing GPT4 performance
The authors don't seem to care about the principle of least privilege: https://github.com/ollama/ollama/issues/851#issuecomment-177...

It makes me wonder what other security issues they might now care about.

gbickford··on Rephrasing the Web: A Recipe for Compute and Data-Efficient Language Modeling
This paper is well written. The results are pretty wild. They observed some amazing reduction in training resources required to achieve similar benchmarks to models trained on conventional data:

> We observe that even at the first checkpoint (10B tokens) of WRAP training, the average perplexity of the LLM on the Pile is lower than that achieved by pre-training on C4 for 15 checkpoints. This suggests a 15x pre-training speed-up.