|
Download README.md from cy0307/lm-rag-pipeline: direct link, hf CLI and curl.
- Browser
- Download file 4.4 kB
-
https://huggingface.co/cy0307/lm-rag-pipeline/resolve/main/README.md
- Command line
-
hf download hf://cy0307/lm-rag-pipeline/README.md
-
curl -L -o README.md https://huggingface.co/cy0307/lm-rag-pipeline/resolve/main/README.md
4.4 kB
| license: mit | |
| base_model: BAAI/bge-small-en-v1.5 | |
| tags: | |
| - ropedia-academy | |
| - advanced | |
| - gpu | |
| - todo | |
| - embodied-ai | |
| - track-c | |
| - track-d | |
| # RAG β retrieval-augmented generation π§ not trained yet | |
| > Embed a corpus, retrieve with FAISS, and ground an LLM's answer in it. | |
| **Status β documented recipe (placeholder).** A production-grade pipeline from **[Ropedia Academy](https://chaoyue0307.github.io/ropedia-academy/)** for an advanced, GPU-heavy task. Everything below β base model, objective, dataset, config, the exact evaluation β is specified; the **weights / metrics / figures** land here automatically when you run the notebook on a GPU (one click below). Try the trained models live in the **[Ropedia demos Space](https://huggingface.co/spaces/cy0307/ropedia-demos)**. | |
| ## At a glance | |
| | | | | |
| |---|---| | |
| | **Base model** | BAAI/bge-small-en-v1.5 (embed) + Qwen2.5-0.5B-Instruct (gen) | | |
| | **Task** | grounded generation over a corpus | | |
| | **Training objective** | Embed β FAISS retrieve β ground the LLM's answer in retrieved passages. | | |
| | **Track** | LM Β· Language & multimodal | | |
| | **Built on** | [sentence-transformers + FAISS](https://github.com/facebookresearch/faiss) | | |
| | **Notebook** | [](https://colab.research.google.com/github/ChaoYue0307/ropedia-academy/blob/main/notebooks/advanced/LM_rag_pipeline.ipynb) | | |
| | **Compute / storage / time** | GPU required β see the *Compute Β· storage Β· time* table in the notebook | | |
| ## Dataset | |
| - **Source:** Your document corpus (demo: 6 docs). | |
| ## Training config | |
| GPU-scale β the notebook ships a **demo** profile (free Colab T4) and a **full** profile, with an exact *Compute Β· storage Β· time* table. Hyperparameters (optimizer, steps, batch, LoRA rank, β¦) are in the training cell. | |
| ## Evaluation results | |
| β³ **Pending** β run the notebook on a GPU to fill this in. This lab reports **retrieval recall@k** on a held-out split (see its *Evaluate* cell). | |
| ## Inference example | |
| No weights are published yet. After a GPU run, load the checkpoint/adapter the notebook saves (it also has a ready inference cell). Base model: **BAAI/bge-small-en-v1.5 (embed) + Qwen2.5-0.5B-Instruct (gen)**. | |
| ## How to fill this repo | |
| 1. Open the [notebook in Colab](https://colab.research.google.com/github/ChaoYue0307/ropedia-academy/blob/main/notebooks/advanced/LM_rag_pipeline.ipynb) β **Runtime β GPU β Run all** (runs the real pipeline). | |
| 2. Run its **Publish to the Hugging Face Hub** step (or `HfApi().upload_folder(...)`) β the checkpoint + `metrics.json` + figures replace this placeholder. | |
| - [ ] Train / run on a GPU Β· [ ] upload weights Β· [ ] add `metrics.json` Β· [ ] add figures Β· [ ] swap in the real results card | |
| ## Limitations | |
| Not yet trained β no numbers to report. The pipeline is **GPU-heavy** (see the compute table); on free Colab use the demo-scale settings. This is an educational, reproducible recipe, not a tuned production release. | |
| ## License | |
| Code: **MIT** (this repository). The **base model** ([sentence-transformers + FAISS](https://github.com/facebookresearch/faiss)) and **dataset** are each under their own licenses β check the upstream source before redistribution. | |
| ## Citation | |
| ```bibtex | |
| @misc{ropedia_academy, | |
| title = {Ropedia Academy: an interactive course on embodied & spatial AI}, | |
| author = {Ropedia Academy}, | |
| year = {2026}, | |
| howpublished = {\url{https://chaoyue0307.github.io/ropedia-academy/}} | |
| } | |
| ``` | |
| **Method / original work:** Lewis et al., *RAG*, NeurIPS 2020. | |
| ## Related assets | |
| - π **Live demos:** [https://huggingface.co/spaces/cy0307/ropedia-demos](https://huggingface.co/spaces/cy0307/ropedia-demos) | |
| - π€ **All models + collection:** [https://huggingface.co/cy0307](https://huggingface.co/cy0307) | |
| - π **Course & all labs:** [https://chaoyue0307.github.io/ropedia-academy/](https://chaoyue0307.github.io/ropedia-academy/) Β· [Labs tab](https://chaoyue0307.github.io/ropedia-academy/labs) | |
| - π» **Source / notebooks:** [github.com/ChaoYue0307/ropedia-academy](https://github.com/ChaoYue0307/ropedia-academy) | |
| - π **Relates to tracks:** C Β· D | |
| --- | |
| *Documented placeholder in the [Ropedia Academy](https://chaoyue0307.github.io/ropedia-academy/) collection β train it on a GPU to publish the real model. Contributions welcome on [GitHub](https://github.com/ChaoYue0307/ropedia-academy).* | |