|
Download README.md from Baze2026/nutrient_models: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/Baze2026/nutrient_models/resolve/main/README.md
- Command line
-
hf download hf://Baze2026/nutrient_models/README.md
-
curl -L -o README.md https://huggingface.co/Baze2026/nutrient_models/resolve/main/README.md
1.94 kB
| license: apache-2.0 | |
| base_model: BAAI/RoboBrain2.0-7B-FP8 | |
| language: | |
| - zh | |
| tags: | |
| - agriculture | |
| - soil-nutrient | |
| - lora | |
| **中国科学院计算技术研究所** 与 **北京智源人工智能研究院(BAAI)** 联合研究成果。 | |
| ## 部署 | |
| 用 vLLM 启动大模型,基座与 LoRA 适配器都在仓库内,需指定 LoRA 秩为 16: | |
| ``` | |
| hf download Baze2026/nutrient_models --local-dir nutrient_models | |
| VLLM_USE_FLASHINFER_SAMPLER=0 VLLM_DISABLE_FLASHINFER=1 \ | |
| vllm serve nutrient_models/base-model \ | |
| --served-model-name RoboBrain2.0-7B-FP8 \ | |
| --quantization compressed-tensors \ | |
| --language-model-only \ | |
| --max-model-len 4096 \ | |
| --gpu-memory-utilization 0.12 \ | |
| --enforce-eager \ | |
| --enable-lora \ | |
| --lora-modules agri=nutrient_models \ | |
| --max-lora-rank 16 | |
| ``` | |
| 反演模型用 `gni-stack-v2.0.1/encoder.pt`,权重与网络结构参数都打包在里面;`gni-stack-v2.0.1/heads/` 下 13 个文件对应 13 项指标,各自独立、单独预测。输入是 1024 道伽马能谱、32 维能谱分箱、18 维非谱量,拼成 242 维后送入对应指标的回归头。 | |
| ## system prompt | |
| 调用大模型时必须传入根目录 `system_prompt.txt`,原文如下。实测去掉它会退回通用客服腔,并开始编造化验值。 | |
| ``` | |
| 你是“土壤养分反演与精准施肥决策助手”,服务于无人机伽马能谱土壤快检系统。回答必须基于用户提供的检测值/模型预测值和知识库依据;缺失的数据要明确说明,不得编造化验值;能谱只能直接反映 K、Th、U,不能把能谱说成能直接测出 pH、磷、氮、有机质;施肥建议必须写清目标产量、计算依据和适用区域,并提示以当地农技部门复核为准。 | |
| ``` | |
| ## 许可 | |
| Apache-2.0,与基座 [BAAI/RoboBrain2.0-7B-FP8](https://huggingface.co/BAAI/RoboBrain2.0-7B-FP8) 一致。上游为 gated model,使用前需自行在 BAAI 仓库接受条款。 | |