基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Ntizar/koldo --skill airllm命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | airllm |
| description | Inferencia de LLMs de 70B-405B en GPU de 4GB — layer-wise sharding, lazy loading, prefetching, sin cuantización |
| url | https://github.com/lyogavin/airllm |
| category | mlops |
| fecha | 2026-06-04T00:00:00.000Z |
AirLLM es una librería Python de código abierto que permite ejecutar inferencia de modelos de lenguaje grandes (LLMs) de 70B+ parámetros en una GPU de solo 4GB de VRAM, sin necesidad de cuantización, distillation ni pruning. En su versión más reciente, soporta Llama3.1 405B en 8GB de VRAM.
AutoModel.from_pretrained("model_id")
├── Detecta arquitectura del modelo (Llama, Mistral, Mixtral, Qwen, ChatGLM, Baichuan, InternLM)
└── AirLLMBaseModel
├── split_and_save_layers() → divide el modelo en shards por capa
├── init_model() → crea modelo vacío con init_empty_weights()
├── Prefetching pipeline (CUDA stream + ThreadPoolExecutor)
├── Forward pass layer-by-layer
│ ├── Cada capa se carga en GPU → procesa → libera memoria
│ └── Activaciones intermedias se guardan en RAM (no VRAM)
└── Compression (opcional)
├── 4bit block-wise quantization (3x speedup)
└── 8bit block-wise quantization (2x speedup)
AutoModel.from_pretrained() detecta automáticamente la arquitectura.Llama, Llama2, Llama3, Llama3.1 (hasta 405B!), Mistral, Mixtral, Qwen, Qwen2, Qwen2.5, ChatGLM, Baichuan, InternLM
# Instalación
pip install airllm
# Opcional: para compresión
pip install bitsandbytes
# Uso básico (70B en 4GB GPU)
from airllm import AutoModel
model = AutoModel.from_pretrained("garage-bAInd/Platypus2-70B-instruct")
input_text = ["What is the capital of United States?"]
input_tokens = model.tokenizer(input_text, return_tensors="pt", truncation=True, max_length=128)
generation_output = model.generate(
input_tokens['input_ids'].cuda(),
max_new_tokens=20,
use_cache=True,
return_dict_in_generate=True
)
print(model.tokenizer.decode(generation_output.sequences[0]))
# Con compresión 4bit (3x speedup)
model = AutoModel.from_pretrained(
"garage-bAInd/Platypus2-70B-instruct",
compression='4bit',
profiling_mode=True,
prefetching=True,
delete_original=True # Free disk space after splitting
)
# Con token HuggingFace (modelos gated)
model = AutoModel.from_pretrained(
"meta-llama/Llama-2-70b-hf",
hf_token="HF_API_TOKEN"
)
from_pretrained, generate), facilitando la integración..cache/huggingface.compression='4bit' o '8bit', el prefetching se desactiva automáticamente.AutoModel en lugar de clases específicas.2026-06-04 (trending diario)
Skills del sistema Mastermind - agente principal, dashboards, deploy, voz, APIs y automatización para Ntizar.
Búsqueda semántica de skills usando ChromaDB local + qwen3-embedding (NaN API). Indexa 190+ skills como vectores 4096-dim y consulta por similitud para cargar solo los relevantes.
Free web search via DuckDuckGo — text, news, images, videos. No API key needed. Prefer the `ddgs` CLI when installed; use the Python DDGS library only after verifying that `ddgs` is available in the current runtime.