Better HN
topnewbestaskshowjobs
Log inSign up

rawsh

51 karma · joined May 5, 2020 (6y ago) · 19 submissions

Submissions

1.

Flash-MSA: Accelerating Million-Token Training with Sparse Attention Kernels(nanduruganesh.github.io ↗)

41 points · by rawsh · 4mo ago · 5 comments

2.

Zyphra ZAYA1-base: First large-scale model trained on AMD(zyphra.com ↗)

6 points · by rawsh · 1y ago · 1 comment

3.

Debugging divergence between engine and transformers logprobs for RL(gist.github.com ↗)

2 points · by rawsh · 1y ago · discuss

4.

Batched reward model inference and Best-of-N sampling(raw.sh ↗)

34 points · by rawsh · 2y ago · discuss

comment 2y ago · link · parent

You can actually get solid performance with pretrained chat models: https://raw.sh/posts/chess_puzzles

On lichess puzzles gpt4o with the compiled prompt is around 70%, I think the 270M transformer is around 95%

6.

Teaching LLMs to solve chess puzzles with DSPy and Finetuning(raw.sh ↗)

1 points · by rawsh · 2y ago · discuss

comment 2y ago · link · parent

Bit confused what the value add is over a framework like DSPy. This still requires you to create an eval dataset with ground truth, basically the only hard part of using DSPy. Easily getting the optimized prompt and having some metrics out of the box is not worth nearly $1k/mo IMO

Side note: I’ve had a lot of luck combining automatic prompt optimization with finetuning. There is definitely some synergy https://raw.sh/posts/chess_puzzles

8.

Teaching chat models to solve chess puzzles(raw.sh ↗)

4 points · by rawsh · 2y ago · discuss

comment 2y ago · link · parent

I built a web version with WASM at https://pdfgrep.com a few years ago in case it’s helpful to anyone

comment 2y ago · link · parent

https://github.com/VikParuchuri/marker is solid, but slow and needs gpu(s) to be practical

comment 3y ago · link · parent

Is it possible to use this for hybrid search in combination with pg_embedding? My understanding is that hybrid search currently requires syncing with Postgres

12.

Ask HN: Why aren't there Open source embedding models with context length > 512?

3 points · by rawsh · 3y ago · 2 comments

comment 3y ago · link · parent

Documents actually never get uploaded! PDF text extraction happens on the client using a web worker and MuPDF compiled to WASM.

1. PDF parsed and chunked on the client

2. Sparse vectors are regenerated for the entire document corpus and the existing vectors are updated

3. Dense vectors are generated for the new text and upserted along with the new sparse values

The original documents stay on your device.

comment 3y ago · link · parent

Nope, it’s a serious project; I mostly made it for personal use during my last semester of college. I rewrote it a few times and packaged it up because I think it’s genuinely useful. Langchain gets you 80% of the way there but you run into issues with it very quickly.

15.

Show HN: DankGPT – Chat with Your Documents(dankgpt.com ↗)

17 points · by rawsh · 3y ago · 9 comments

16.

Show HN: Search PDFs in the browser using PDFgrep compiled to WebAssembly(pdfgrep.com ↗)

4 points · by rawsh · 3y ago · 1 comment

comment 3y ago · link · parent

DankGPT is able to draw context from a library of documents (textbook, papers, class slides) to explain any topic and answer complicated reasoning problems.

It’s very similar to ChatPDF, but you can include multiple documents and it has much better context selection. This leads to better answers in practice (less “the source does not contain information on…” and hallucinations)

https://dankgpt.com

18.

Show HN: Search PDFs using WASM in the browser(pdfgrep.com ↗)

2 points · by rawsh · 3y ago · discuss