Better HN
topnewbestaskshowjobs
Log inSign up

sandkoan

128 karma · joined Oct 11, 2020 (6y ago) · 99 submissions

https://govindgnana.com , https://blog.govindgnana.com
Submissions

comment 1y ago · link · parent

DeepMind.

comment 2y ago · link · parent

See https://musiccontrolnet.github.io/web/

comment 2y ago · link · parent

sudo !!

comment 2y ago · link · parent

Ilya says this here: https://www.youtube.com/watch?v=AKMuA_TVz3A

5.

New Funding from Andreessen Horowitz(quorablog.quora.com ↗)

5 points · by sandkoan · 2y ago · 1 comment

comment 3y ago · link · parent

For anyone else interested, the paper he's referring to is "The Reversal Curse": https://arxiv.org/abs/2309.12288.

comment 3y ago · link · parent

For anyone who's curious, the paper in question, entitled, "Lost in the Middle: How Language Models Use Long Contexts" (https://arxiv.org/abs/2307.03172)

comment 3y ago · link · parent

This is part of what we're doing at Automorphic. Building shareable, stackable adapters that you can compose like lego bricks.

comment 3y ago · link · parent

This is what we did at Trex (https://github.com/automorphic-ai/trex). The tricky part is doing it quickly and efficiently.

comment 3y ago · link · parent

Also using a similar method: https://github.com/automorphic-ai/trex

Playground: https://automorphic.ai/playground

comment 3y ago · link · parent

Relevant: Built this which generalizes to arbitrary regex patterns / context free grammars with 100% adherence and is model-agnostic — https://news.ycombinator.com/item?id=36750083

comment 3y ago · link · parent

Yeah, then it seems we agree. I was just pointing out that it's not necessary to finetune OSS models to behave like OpenAI functions if you're able to do something similar to what we did (no tuning involved!).

comment 3y ago · link · parent

Ahh, no, the value of this isn't as much the model as it is the infrastructure enabling structure enforcement.

14.

Can you beat our firewall?(automorphic.ai ↗)

2 points · by sandkoan · 3y ago · discuss

comment 3y ago · link · parent

https://news.ycombinator.com/item?id=36752991

comment 3y ago · link · parent

You wouldn't actually want to, because you'd be losing generalizability, and it's a lot of unnecessary work.

I think approach #1 outlined above is the better (more cost- and time-efficient) technique—where a pretrained model already understands JSON (among myriad other formats), and you merely constrain it at text-gen time to valid JSON (or other format).

comment 3y ago · link · parent

Ahh, I've been meaning to try FLARE—was it a marked improvement over traditional RAG?

comment 3y ago · link · parent

Thanks for the reminder—done!

comment 3y ago · link · parent

This is model agnostic, actually—any model on HuggingFace is compatible. So if someone wanted to run this with their own model, they could.

comment 3y ago · link · parent

Custom LLM—hence the self-hostability.

comment 3y ago · link · parent

Costs add up surprisingly quickly. A quote-colon-space-quote combo alone is four tokens wasted. Now scale that up....

comment 3y ago · link · parent

https://news.ycombinator.com/item?id=36753254

Does this help clarify?

comment 3y ago · link · parent

The prompt is given to our model as a guiding aid (a suggestion), and the cfg is used to constrain the model to generate only tokens that abide by the schema (an enforcement). That's how we ensure only valid outputs at text generation time.

We also prefill some tokens depending on the set of allowed tokens at a given state, so the model doesn't waste resources trying to predict them.

comment 3y ago · link · parent

We have folks playing around with it mostly through the playground / raw HTTP endpoints as opposed to the Python API. And we've got some batch jobs running, which adds further traffic.

comment 3y ago · link · parent

Problems with OpenAI:

1) You're wasting GPT tokens on outputting JSON instead of meaningful information.

2) GPT functions won't, with absolute, 100% certainty, return JSON in the schema you want. In 1% to 3% of cases it hallucinates fields, etc.

3) This also allows you to output data in arbitrary non-JSON formats.

4) You can't self-host OpenAI functions.

comment 3y ago · link · parent

We enable conforming to arbitrary context free grammars in addition to regex patterns, and have a bunch of speed optimizations, as well.

Though it may not seem too fast right now on account of the hundreds of simultaneous requests we're getting :)

comment 3y ago · link · parent

Ahh, that—due to compute limitations we're forced to run a very small model that isn't as capable of converting 5'8" to inches. The larger model is, though.

28.

Anything Can Be a Weekend Hack(blog.govindgnana.com ↗)

2 points · by sandkoan · 3y ago · discuss

1234