Skip to main content

llm-development

LLM and ML development best practices with LangChain and transformers. Use when building AI/ML applications.

소스 정보

저장소
meleantonio/ChernyCode
최근 소스 활동
2026년 2월 1일 11:23
감지된 SKILL.md 언어
영어
스타
517
포크
108

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
llm-development
description
LLM and ML development best practices with LangChain and transformers. Use when building AI/ML applications.
# LLM & ML Development ## Frameworks - **LLM**: LangChain, transformers - **Data**: pandas, numpy - **API**: FastAPI with Pydantic ## Configuration Management - Use Hydra or YAML for experiment configs - Keep configs version-controlled - Separate dev/staging/prod configurations Example config structure: ``` config/ base.yaml models/ gpt4.yaml claude.yaml experiments/ baseline.yaml ``` ## Data Pipeline - Manage data versions with DVC - Document data sources and transformations - Use consistent data formats - Validate data at pipeline boundaries ## Model Versioning - Version models with Git LFS or model registry - Track experiments with MLflow or similar - Log hyperparameters and metrics - Save reproducibility info (seeds, versions) ## LangChain Best Practices - Use LCEL (LangChain Expression Language) for chains - Implement proper error handling for LLM calls - Add retry logic for API failures - Cache expensive operations Example: ```python from langchain_core.prompts import ChatPromptTemplate from langchain_core.output_parsers import StrOutputParser prompt = ChatPromptTemplate.from_template("Summarize: {text}") chain = prompt | llm | StrOutputParser() ``` ## Prompt Engineering - Store prompts as separate files or constants - Version control prompt templates - Test prompts with diverse inputs - Document expected outputs ## Error Handling - Catch and log LLM API errors - Implement graceful degradation - Set appropriate timeouts - Handle rate limiting ## Performance - Use async for I/O-bound LLM calls - Implement caching for repeated queries - Batch requests when possible - Monitor token usage and costs ## Testing LLM Applications - Mock LLM responses for unit tests - Create integration tests with real calls - Test edge cases and failure modes - Validate output format and structure
GitHub에서 보기