Token导航 LogoToken导航TokenDH.com
研究检索external-serviceclawhub未标认证来源可访问clear审计提醒

low-resource-ai-researcher低资源 AI 研究员

Agent Skill

low-resource-ai-researcher 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,078

周安装

127

GitHub Stars

公开资料未说明

下载量

1,006
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:low-resource-ai-researcher(低资源 AI 研究员)
来源仓库:https://github.com/aipoch-ai/low-resource-ai-researcher
安装命令:
openclaw skills install low-resource-ai-researcher
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install low-resource-ai-researcher

简介

使用参数高效微调技术在消费级 GPU 上训练高性能医学大模型。

  • 适用于 OpenClaw 中医疗文本理解、诊断辅助或科研数据分析场景。
  • 支持小样本学习与低算力环境下的模型快速迭代。
  • 通过 clawhub 安装,需确保硬件满足最低显存与计算能力要求。
  • 注意医疗数据敏感性,必须脱敏处理并通过合规审核方可上线。

SKILL.md

name
low-resource-ai-researcher
description
Train high-performance medical LLMs on consumer GPUs using parameter-efficient
version
1.0.0
category
Research
tags
[]
author
AIPOCH
license
MIT
status
Draft
risk_level
Medium
skill_type
Tool/Script
owner
AIPOCH
reviewer
last_updated
2026-02-06

Skill: Low-Resource AI Researcher

ID: 215 Category: AI/ML Research Language: Python Framework: PyTorch + PEFT (LoRA/QLoRA) + Transformers

Overview

Based on Parameter-Efficient Fine-Tuning (PEFT) technology, trains high-performance medical domain large language models on consumer-grade GPUs or single A100. Supports advanced fine-tuning methods such as LoRA, QLoRA, optimized for medical text understanding and generation tasks.

Features

  • 🚀 Parameter-Efficient Fine-Tuning: LoRA, QLoRA, DoRA support
  • 🏥 Medical Domain Optimized: Pre-configured for medical QA, diagnosis, clinical notes
  • 💻 Low-Resource Ready: Optimized for consumer GPUs (RTX 3090/4090) and single A100
  • 📊 Quantization: 4-bit/8-bit quantization with bitsandbytes
  • 🔄 Multi-Task: Supports SFT, DPO, and medical instruction tuning
  • 📝 Medical Datasets: Built-in support for PubMedQA, MedQA, MIMIC-III

Installation

# Core dependencies
pip install torch transformers datasets accelerate peft bitsandbytes

# Optional for training optimization
pip install flash-attn --no-build-isolation
pip install wandb tensorboard

# Medical NLP utilities
pip install scispacy scikit-learn

Quick Start

from skills.low_resource_ai_researcher.scripts.main import MedicalPEFTTrainer

# Initialize trainer
trainer = MedicalPEFTTrainer(
    model_name="meta-llama/Llama-2-7b-hf",
    task="medical_qa"
)

# Train with LoRA
trainer.train(
    output_dir="./medical_lora_model",
    num_epochs=3,
    batch_size=4,
    use_qlora=True  # 4-bit quantization
)

Configuration

Hardware Profiles

ProfileGPU MemoryQuantizationMax Model SizeBatch Size
consumer-24g24GB (RTX 3090/4090)QLoRA 4-bit70B1-2
a100-40g40GB (A100)LoRA 8-bit70B4-8
a100-80g80GB (A100)LoRA 16-bit70B8-16
multi-gpu2x A100LoRA 16-bit70B+16+

LoRA Config

lora:
  r: 64              # LoRA rank
  lora_alpha: 128    # Scaling factor
  target_modules:    # Modules to apply LoRA
    - q_proj
    - v_proj
    - k_proj
    - o_proj
    - gate_proj
    - up_proj
    - down_proj
  lora_dropout: 0.05
  bias: "none"
  task_type: "CAUSAL_LM"

CLI Usage

# Basic training
python scripts/main.py \
    --model_name_or_path meta-llama/Llama-2-7b-hf \
    --dataset medical_qa \
    --output_dir ./output \
    --use_qlora \
    --per_device_train_batch_size 4

# With custom config
python scripts/main.py --config configs/medical_qlora.yaml

# Resume training
python scripts/main.py --resume_from_checkpoint ./output/checkpoint-1000

API Reference

MedicalPEFTTrainer

trainer = MedicalPEFTTrainer(
    model_name: str,              # Base model name/path
    task: str,                    # Task type: medical_qa, diagnosis, clinical_note
    lora_r: int = 64,             # LoRA rank
    lora_alpha: int = 128,        # LoRA alpha
    use_qlora: bool = False,      # Use 4-bit quantization
    target_modules: List[str] = None,
    device_map: str = "auto",
    trust_remote_code: bool = True
)

Methods

MethodDescription
train()Start fine-tuning with configured parameters
evaluate()Evaluate on medical benchmark datasets
merge_and_save()Merge LoRA weights and save full model
load_model()Load a trained model for inference
generate()Generate medical text/responses

Supported Models

  • LLaMA 2/3 (7B, 13B, 70B)
  • Mistral (7B, 8x7B)
  • Yi (6B, 34B)
  • Qwen (7B, 14B, 72B)
  • Baichuan (7B, 13B)
  • ChatGLM (6B)

Medical Datasets

DatasetDescriptionSize
PubMedQABiomedical QA1k QA pairs
MedQAUSMLE-style questions61k
MedMCQAMedical entrance exam QA194k
MIMIC-IIIClinical notesDe-identified
CMeEEChinese medical NER15k
Huatuo-26MChinese medical corpus26M samples

Performance Benchmarks

ModelMethodGPUTraining TimeMedQA Acc
LLaMA-2-7BLoRAA100-40G2h58.2%
LLaMA-2-7BQLoRARTX 40903h57.8%
LLaMA-2-13BQLoRAA100-40G4h62.5%
Mistral-7BLoRAA100-40G2.5h61.3%

Best Practices

  1. Gradient Accumulation: Use for effective larger batch sizes
  2. Learning Rate: Start with 2e-4 for LoRA, 1e-4 for full fine-tuning
  3. Warmup Steps: 100 steps for medical domain adaptation
  4. Max Length: 2048-4096 for clinical notes, 512-1024 for QA
  5. Data Quality: Filter out low-quality medical data carefully

Troubleshooting

Out of Memory

# Enable gradient checkpointing
trainer.train(gradient_checkpointing=True)

# Reduce sequence length
trainer.train(max_seq_length=1024)

# Use DeepSpeed ZeRO-3 for large models

Slow Training

# Enable Flash Attention
trainer.train(use_flash_attention=True)

# Use bf16 on Ampere GPUs
trainer.train(bf16=True)

License

This skill follows the license of the underlying models used. Medical applications require compliance with HIPAA/GDPR regulations.

References

  1. Hu et al. (2021) - LoRA: Low-Rank Adaptation of Large Language Models
  2. Dettmers et al. (2023) - QLoRA: Efficient Finetuning of Quantized LLMs
  3. Singhal et al. (2023) - Large Language Models Encode Clinical Knowledge

Risk Assessment

Risk IndicatorAssessmentLevel
Code ExecutionPython/R scripts executed locallyMedium
Network AccessNo external API callsLow
File System AccessRead input files, write output filesMedium
Instruction TamperingStandard prompt guidelinesLow
Data ExposureOutput files saved to workspaceLow

Security Checklist

  • [ ] No hardcoded credentials or API keys
  • [ ] No unauthorized file system access (../)
  • [ ] Output does not expose sensitive information
  • [ ] Prompt injection protections in place
  • [ ] Input file paths validated (no ../ traversal)
  • [ ] Output directory restricted to workspace
  • [ ] Script execution in sandboxed environment
  • [ ] Error messages sanitized (no stack traces exposed)
  • [ ] Dependencies audited

Prerequisites

# Python dependencies
pip install -r requirements.txt

Evaluation Criteria

Success Metrics

  • [ ] Successfully executes main functionality
  • [ ] Output meets quality standards
  • [ ] Handles edge cases gracefully
  • [ ] Performance is acceptable

Test Cases

  1. Basic Functionality: Standard input → Expected output
  2. Edge Case: Invalid input → Graceful error handling
  3. Performance: Large dataset → Acceptable processing time

Lifecycle Status

  • Current Stage: Draft
  • Next Review Date: 2026-03-06
  • Known Issues: None
  • Planned Improvements:

- Performance optimization - Additional feature support

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

90.67%
按下载量换算912

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills