#166 · Primary category: Knowledge Base & RAG
gritlm
Generative Representational Instruction Tuning
Project last updated:06/25/25
GitHub Stars
699
Forks
49
Contributors
7
License
MIT
Why we included this project
GRIT is the reference implementation of a method that trains one LLM to do two jobs at once: produce text embeddings and generate responses from the same weights. The repo installs as a pip package, `gritlm`, whose `GritLM` class loads the 7B or 8x7B models for embedding, generation, or both, and it includes the training data, alignment recipes, and evaluation scripts from the paper. Because the same model handles both tasks, you can cache computations and roughly halve the forward passes in a RAG loop, which pays off when you serve long documents. Teams running separate embedding and generation models get a simpler serving setup, and anyone who wants to reproduce or extend the MTEB results has the full training pipeline rather than a bare checkpoint.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
ragflow
RAGFlow is a leading open-source Retrieval-Augmented Generation (RAG) engine that fuses cutting-edge RAG with Agent capabilities to create a superior context layer for LLMs
Understand-Anything
Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
crawl4ai
🚀🤖 Crawl4AI: Open-source LLM Friendly Web Crawler & Scraper. Don't be shy, join here: https://discord.gg/jP8KfhDhyN
docling
Get your documents ready for gen AI
anything-llm
Stop renting your intelligence. Own it with AnythingLLM. Everything you need for a powerful local-first agent experience