소스 정보
- 저장소
- firstbatchxyz/kai
- 최근 소스 활동
- 2026년 6월 19일 14:08
- 감지된 SKILL.md 언어
- 영어
- 스타
- 2
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/firstbatchxyz/kai --skill runpod명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Inspect and analyze codebases using pygount for LOC counting, language breakdown, and code-vs-comment ratios. Use when asked to check lines of code, repo size, language composition, or codebase stats.
Set up GitHub authentication for the agent using git (universally available) or the gh CLI. Covers HTTPS tokens, SSH keys, credential helpers, and gh auth — with a detection flow to pick the right method automatically.
Production-grade PR review with execution-verified suggestions. Reads repository conventions, history, and security surfaces before reviewing. For every suggested fix, attempts to compile and test it in the sandbox — the comment includes proof. Modelled on GitHub Copilot's agentic architecture with one critical advantage: the sandbox is already running.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | runpod |
| description | Manage GPU pods, deploy serverless endpoints, and run inference workloads on RunPod |
| version | 1.0.0 |
| author | kai-agent |
| metadata | {"kai":{"tags":["kai","compute","runpod","gpu","pods","serverless","inference"]}} |
Skill for creating and managing GPU pods, deploying serverless inference endpoints, and running compute workloads on RunPod.
This skill uses the RUNPOD_API_KEY environment variable. If it is not set, ask your admin
to add it in Agent Settings. You can generate a key at https://www.runpod.io/console/user/settings.
pip install runpod
| GPU | VRAM | Best for |
|---|---|---|
| RTX 3090 | 24 GB | Quantized models up to 13B |
| RTX 4090 | 24 GB | Fast inference, quantized models |
| A40 | 48 GB | Medium models, fine-tuning |
| A100 (40 GB) | 40 GB | Large models, high throughput |
| A100 (80 GB) | 80 GB | 70B quantized, large batch inference |
| H100 (80 GB) | 80 GB | Maximum throughput, largest models |
import runpod
runpod.api_key = os.environ["RUNPOD_API_KEY"]
pod = runpod.create_pod(
name="vllm-llama3-8b",
image_name="runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04",
gpu_type_id="NVIDIA RTX A6000",
gpu_count=1,
volume_in_gb=50,
container_disk_in_gb=20,
ports="8000/http",
env={
"HF_TOKEN": os.environ.get("HF_TOKEN", ""),
},
)
print(f"Pod ID: {pod['id']}")
print(f"Status: {pod['desiredStatus']}")
gpu_types = runpod.get_gpus()
for gpu in gpu_types:
print(f"{gpu['id']}: {gpu['displayName']} - {gpu['memoryInGb']}GB")
pod = runpod.get_pod(pod_id="your-pod-id")
print(f"Status: {pod['desiredStatus']}")
print(f"Runtime: {pod.get('runtime')}")
pods = runpod.get_pods()
for pod in pods:
print(f"{pod['id']}: {pod['name']} - {pod['desiredStatus']}")
runpod.stop_pod(pod_id="your-pod-id")
runpod.resume_pod(pod_id="your-pod-id", gpu_count=1)
runpod.terminate_pod(pod_id="your-pod-id")
When a pod is running, you can SSH into it:
# Get SSH command from pod details
ssh root@<pod-ip> -p <ssh-port> -i ~/.ssh/your_key
Or use the RunPod CLI:
runpodctl ssh --pod-id <pod-id>
# Upload
runpodctl send ./model-weights.tar.gz --pod-id <pod-id>
# Download from pod
runpodctl receive <pod-id>:/workspace/results.json ./results.json
Serverless endpoints auto-scale from zero and are billed per second of compute.
endpoint = runpod.create_endpoint(
name="llama3-inference",
template_id="your-template-id",
gpu_ids="NVIDIA RTX A6000",
workers_min=0,
workers_max=3,
idle_timeout=5, # seconds before scaling down
)
print(f"Endpoint ID: {endpoint['id']}")
Create a handler.py for your custom inference logic:
import runpod
def handler(event):
"""Serverless handler for inference requests."""
input_data = event["input"]
prompt = input_data.get("prompt", "")
max_tokens = input_data.get("max_tokens", 256)
# Your inference logic here (vLLM, TGI, custom model)
result = run_inference(prompt, max_tokens)
return {"output": result}
runpod.serverless.start({"handler": handler})
FROM runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY handler.py .
COPY model/ ./model/
CMD ["python", "-u", "handler.py"]
import runpod
endpoint = runpod.Endpoint("your-endpoint-id")
# Synchronous (waits for result)
result = endpoint.run_sync(
{"input": {"prompt": "Explain tensor parallelism:", "max_tokens": 256}},
timeout=60,
)
print(result)
# Asynchronous
run = endpoint.run({"input": {"prompt": "Explain KV-cache:", "max_tokens": 256}})
status = endpoint.status(run["id"])
# Poll until complete
output = endpoint.output(run["id"])
for chunk in endpoint.stream({"input": {"prompt": "Write a story:", "max_tokens": 1024}}):
print(chunk, end="", flush=True)
Templates define a pre-configured container image and settings:
template = runpod.create_template(
name="vllm-serving",
image_name="vllm/vllm-openai:latest",
container_disk_in_gb=20,
volume_in_gb=100,
ports="8000/http",
env={
"MODEL_NAME": "meta-llama/Llama-3.1-8B-Instruct",
"MAX_MODEL_LEN": "4096",
},
)
idle_timeout on serverless endpoints to control scale-down behavior