Ray Strode (@halfartificial) profile picture

@halfline alt account for ai related discourse

Joined April 2024
Photo by Ray Strode (@halfartificial)Photo by Ray Strode (@halfartificial)Photo by Ray Strode (@halfartificial)Photo by Ray Strode (@halfartificial)Photo by Ray Strode (@halfartificial)Photo by Ray Strode (@halfartificial)Photo by Ray Strode (@halfartificial)Photo by Ray Strode (@halfartificial)Photo by Ray Strode (@halfartificial)Photo by Ray Strode (@halfartificial)
Ray Strode retweeted
Everything you need to start self-hosting an open LLM. Run it on your own hardware. No API keys. No per-token bill. Nothing leaves your machine. The full path with @vllm_project: batch inference in Python, an OpenAI-compatible API server in one command, and quantized models that cut an 8B from ~16GB of weights to a quarter of that while keeping 98-100% accuracy. Walkthrough by @cedricclyburn.
20
26
5
132
8,684
guess what NVIDIA used here for an "attention-based encoder-decoder to retrieve directly from its own internal representations"? late interaction is sparse attention
Retrieval from Within: An Intrinsic Capability of Attention-Based Models NVIDIA enables encoder-decoder models to perform retrieval directly through their own cross-attention mechanism, eliminating the need for a separate retriever. 📝 arxiv.org/abs/2605.05806
7
19
202
19,051
Ray Strode retweeted
🚀 git-stage-batch 0.7.0 is out! Big new feature: `--as TEXT` flag for `include` and `discard` Now you can do powerful line-level text replacement while staging or moving changes to batches. Replacement support is now consistent across live selections, batch display, and discard-to-batch. #Git #OpenSource
3
2
4
115
Ray Strode retweeted
New Release Out! I got two cool feature requests since the last release that made pushing another release out make sense. 1/
1
3
3
191
It's a small tool but really useful!
I started a new git staging tool: halfline.github.io/git-stage… anyone who likes it try it, anyone who likes me star it on github (github.com/halfline/git-stag…)
1
1
23
Ray Strode retweeted
Claude solved one of Donald Knuth's conjectures from writing "The Art of Computer Programming" and he wrote about it. www-cs-faculty.stanford.edu/…
9
99
4
434
54,038
Ray Strode retweeted
chinese bros back at it again - train a Decoder-Only transformer < 3 hrs on a 3090 - fully studded with LoRA, DPO, SFT. - well documented training - vision, moe, and other goodies also avail.
19
201
16
1,973
123,700
Knowledge Graphs give LLMs the context they need to understand your code better This paper presents a novel approach to improve software repository question-answering by combining LLMs with knowledge graphs. The research demonstrates how knowledge graphs can enhance LLMs' ability to understand and retrieve repository data accurately, achieving significant improvements in query accuracy. ----- 🤔 Original Problem: → Existing software repository chatbots struggle with natural language understanding and accurate data retrieval, limiting their effectiveness for both technical and non-technical users. → Current LLM-based chatbots fail to retrieve accurate repository data 83.3% of the time. ----- 🔧 Solution in this Paper: → The approach uses a two-step process: first constructing a knowledge graph from repository data, then synergizing it with LLMs for natural language interactions. → A Knowledge Graph Constructor collects and models repository data into graph format. → The Query Generator translates natural language questions into graph queries using an LLM. → The Query Executor extracts and runs these queries against the knowledge graph. → The Response Generator creates natural language answers based on retrieved data. ----- 💡 Key Insights: → GPT-4 showed highest accuracy (65%) in generating Cypher queries from natural language → Chain-of-thought prompting significantly improved complex query handling → Knowledge graphs provide structured context that enhances LLM accuracy ----- 📊 Results: → Initial approach achieved 65% accuracy in answering repository questions → Chain-of-thought prompting improved accuracy to 84% → Complex query accuracy increased from 50% to 90%
1
3
12
2,044
bye bye byte pair encoding. you've served as well, but your time has come.
META JUST KILLED TOKENIZATION !!! A few hours ago they released "Byte Latent Transformer". A tokenizer free architecture that dynamically encodes Bytes into Patches and achieves better inference efficiency and robustness! (I was just talking about how we need dynamic tokenization that is learned during training 🥲 It's like fucking christmas!) I don't want to talk too much about the architecture. But here's a nice visualization from their paper. Let's look at benchmarks instead :) "BLT models can match the performance of tokenization-based models like Llama 3 at scales up to 8B and 4T bytes, and can trade minor losses in evaluation metrics for up to 50% reductions in inference flops!" This is basically a perplexity vs training flops chart - scaling laws with compute. BPB is a tokenizer independent version of perplexity. BLT is on par or better than LLama 3 BPE! Most importantly they scale this approach to train Llama-3 8B model on 1T tokens which beats the standard Llama-3 architecture with BPE tokenizer!
32
Ray Strode retweeted
canvas is now available to all chatgpt users, and can execute code! more importantly it can also still emojify your writing.
496
504
125
8,306
996,806
Open-sourced local LLM based RAG, chatting with your documents with open-source LLMs. ✨ It trended at Number-1 in Github for quite sometime. And a clean & customizable RAG UI for chatting with your documents. → Open-source RAG UI for document QA → Supports local LLMs and API providers → Hybrid RAG pipeline with full-text & vector retrieval → Multi-modal QA with figures & tables support → Advanced citations with in-browser PDF preview → Complex reasoning with question decomposition → Configurable settings UI → Extensible Gradio-based architecture Key features: 👇 🌐 Host your own RAG web UI with multi-user login 🤖 Organize LLM & embedding models (local & API) 🔎 Hybrid retrieval + re-ranking for quality 📚 Multi-modal parsing and QA across documents 💡 Detailed citations with relevance scores 🧩 Question decomposition for complex queries 🎛️ Adjustable retrieval & generation settings 🔌 Customizable UI and indexing strategies
6
69
2
403
34,762
As R&D staff @answerdotai, I work a lot on boosting productivity with AI. A common theme that always comes up is the combination of human+AI. This combination proved to be powerful in our new project ShellSage, which is an AI terminal buddy that learns and teaches with you. A 🧵
5
38
14
199
69,170
Ray Strode retweeted
Welcome PaliGemma 2! 🤗 Google released PaliGemma 2, best vision language model family that comes in various sizes: 3B, 10B, 28B, based on Gemma 2 and SigLIP, comes with transformers support day-0 🎁 Saying this model is amazing would be an understatement, keep reading ✨
28
243
15
1,646
167,349
The First Globally Trained 10B Parameter Model is released. 👏👏 INTELLECT-1 is a groundbreaking 10B parameter LLM trained collaboratively across multiple continents globally using distributed computing, representing a 10x scale-up from previous research. → The model achieved 96% compute utilization in US-only training and 83% globally, using up to 112 H100 GPUs across five countries and three continents. → The PRIME framework enabled this distributed training through innovations like ElasticDeviceMesh and DiLoCo implementation, reducing communication bandwidth by 400x compared to traditional approaches. 🔍 Technical Deep Dive → Model Architecture and Training Scale Built on Llama-3 architecture with 42 layers, 4096 hidden dimensions, 32 attention heads, and 8192 sequence length. Training completed over 42 days using distributed resources globally. → Dataset Composition and Processing Trained on 1T tokens with carefully curated mix: 55% FineWeb-Edu, 20% Stack v2, 10% FineWeb, 10% DCLM-baseline, and 5% OpenWebMath. → Distributed Training Infrastructure Utilized dynamic node participation starting with 4 nodes and scaling to 14 nodes. Maintained training stability despite frequent node fluctuations across different geographical locations. ⚡ Performance Metrics → Geographic Training Efficiency US-only training: 96% compute utilization (103s median sync) Transatlantic: 85.6% utilization (382s sync) Global: 83% utilization (469s sync) → Communication Optimization Achieved 400x reduction in bandwidth requirements through custom int8 all-reduce and DiLoCo implementation while maintaining comparable model performance. 🔄 Post-Training Enhancement → Collaborated with Arcee AI for extensive post-training refinement: 16 SFT runs, 8 DPO runs, and strategic model merging using MergeKit for enhanced capabilities.
Releasing INTELLECT-1: We’re open-sourcing the first decentralized trained 10B model: - INTELLECT-1 base model & intermediate checkpoints - Pre-training dataset - Post-trained instruct models by @arcee_ai - PRIME training framework - Technical paper with all details
3
18
3,570
Ray Strode retweeted
ollama run qwq 🤯 an experimental 32B model by the Qwen team that is competitive with o1-mini and o1-preview in some cases. ollama.com/library/qwq Note: This is the pronunciation of QwQ: /kwju:/ , similar to the word “quill”
24
151
36
965
100,301
Adding rule-based guidance doubles RAG's performance in document retrieval and answer generation. Basically, RAG gets a proper manual on how to use its knowledge. It's like giving RAG a GPS instead of letting it wander around blindly. 🎯 Original Problem: Current Retrieval-Augmented Generation (RAG) frameworks face two major limitations: retrievers can't guarantee fetching the most relevant information, and LLMs lack specific guidance on using retrieved content effectively. ----- 🔧 Solution in this Paper: → Introduces RuleRAG, which uses symbolic rules to guide both retrieval and generation processes. → Guide retrievers to fetch logically related documents following rule directions → Help generators uniformly generate answers attributed by the same set of rules → Use queries and rules combined as supervised fine-tuning data to improve rule-based instruction following → RuleRAG-ICL: Uses in-context learning with rule guidance during retrieval and inference → RuleRAG-FT: Fine-tunes both retrievers and generators using rule-guided fine-tuning → Created five rule-aware QA benchmarks (three temporal, two static) to evaluate performance ----- 💡 Key Insights: → Rules can explicitly guide both document retrieval and answer generation → Combining rules with queries improves retrieval quality significantly → Rule-guided fine-tuning enhances both retrieval and generation performance → The method scales well with increasing numbers of retrieved documents ----- 📊 Results: → RuleRAG-ICL improved retrieval quality by +89.2% in Recall@10 scores → Generation accuracy increased by +103.1% in exact match scores → RuleRAG-FT achieved even better performance improvements across all benchmarks → Method showed strong generalization ability for untrained rules
6
32
2
215
16,250
2:4 Sparsity + @AIatMeta Llama-3.1: At @neuralmagic, we've developed a recipe to produce very competitive sparse LLMs, and we are starting by open-sourcing the first one: Sparse-Llama-3.1-8B-2of4. We also show how to leverage it for blazingly fast inference in @vllm_project.
4
25
1
133
12,973
Introducing the Model Context Protocol (MCP) An open standard we've been working on at Anthropic that solves a core challenge with LLM apps - connecting them to your data. No more building custom integrations for every data source. MCP provides one protocol to connect them all:
237
959
435
7,071
1,494,743
Hunyuan-Large by Tencent is a 389B param MOE (52B active). It's the largest open-weights MOE. In some benchmarks it exceeds Llama 3.1 405B. With MLX's new 3-bit quant it just barely fits on a single 192GB M2 Ultra! And runs at a very decent >15 toks/sec:
9
37
8
373
65,286