"Comprehensive guide for building unique LLM architectures and showcasing them on GitHub. Use for: building LLMs from scratch, fine-tuning open-source models, implementing RAG systems, setting up development environments, and creating portfolio projects."
Resources
3Install
npx skillscat add ramishaheen/building-new-models Install via the SkillsCat registry.
LLM Architect Skill
This skill provides a comprehensive workflow and resources for building unique Large Language Model (LLM) architectures and showcasing these skills on GitHub.
Core Workflows
When asked to help with LLM architecture or portfolio building, follow these workflows based on the user's specific goal:
1. Building an LLM from Scratch
When the user wants to understand core architecture by building from scratch:
- Read
/home/ubuntu/skills/llm-architect/references/architecture_guide.mdfor foundational concepts (Transformers, Attention, Tokenization). - Use the starter script
/home/ubuntu/skills/llm-architect/scripts/transformer_base.pyto set up the basic PyTorch architecture. - Guide the user through implementing Encoder-Decoder blocks and Self-Attention mechanisms.
2. Fine-Tuning Open Source Models
When the user wants to adapt existing models (e.g., Llama, Falcon) for specific tasks:
- Read
/home/ubuntu/skills/llm-architect/references/fine_tuning_guide.mdfor PEFT, LoRA, and QLoRA techniques. - Provide the configuration template
/home/ubuntu/skills/llm-architect/templates/lora_config.yamlfor setting up the fine-tuning environment. - Guide the user through the instruction tuning or RLHF process.
3. Implementing End-to-End RAG Systems
When the user wants to build practical applications with custom context:
- Read
/home/ubuntu/skills/llm-architect/references/rag_guide.mdfor application architecture and vector database integration. - Use the starter script
/home/ubuntu/skills/llm-architect/scripts/rag_pipeline.pyto set up the basic LangChain and vector DB connection. - Guide the user through document ingestion, embedding, and retrieval strategies.
4. Setting Up Development Environments
When the user needs to configure their workspace for LLM development:
- Provide the setup script
/home/ubuntu/skills/llm-architect/scripts/setup_env.shto install necessary dependencies (PyTorch, Hugging Face, etc.). - Guide the user through configuring Git, GitHub, and Jupyter Notebooks for experimentation.
Portfolio Development
To help the user showcase their skills on GitHub:
- Encourage creating a dedicated repository for each major project (From Scratch, Fine-Tuning, RAG).
- Provide the template
/home/ubuntu/skills/llm-architect/templates/README_template.mdfor documenting the projects effectively. - Suggest including rigorous evaluation metrics (offline and online benchmarks) in the documentation.
Bundled Resources
- Scripts (
scripts/): Executable code for setting up architectures, pipelines, and environments. - References (
references/): Detailed guides on specific LLM topics (Architecture, Fine-Tuning, RAG). - Templates (
templates/): Configuration files and documentation templates for GitHub repositories.