AI Skill Hub 强烈推荐:H2O LLM Studio 是一款优质的AI工具。已获得 5.0k 颗 GitHub Star,AI 综合评分 8.5 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
H2O LLM Studio 是一款基于 Python 开发的开源工具,专注于 ai、chatbot、fine-tuning 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
H2O LLM Studio 是一款基于 Python 开发的开源工具,专注于 ai、chatbot、fine-tuning 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install h2o-llmstudio
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install h2o-llmstudio
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/h2oai/h2o-llmstudio
cd h2o-llmstudio
pip install -e .
# 验证安装
python -c "import h2o_llmstudio; print('安装成功')"
# 命令行使用
h2o-llmstudio --help
# 基本用法
h2o-llmstudio input_file -o output_file
# Python 代码中调用
import h2o_llmstudio
# 示例
result = h2o_llmstudio.process("input")
print(result)
# h2o-llmstudio 配置文件示例(config.yml) app: name: "h2o-llmstudio" debug: false log_level: "INFO" # 运行时指定配置文件 h2o-llmstudio --config config.yml # 或通过环境变量配置 export H2O_LLMSTUDIO_API_KEY="your-key" export H2O_LLMSTUDIO_OUTPUT_DIR="./output"
Welcome to H2O LLM Studio, a framework and no-code GUI designed for
fine-tuning state-of-the-art large language models (LLMs).

- PR 788 New problem type for Causal Regression Modeling allows to train single target regression data using LLMs.
- PR 747 Fully removed RLHF in favor of DPO/IPO/KTO optimization.
- PR 741 Removing separate max length settings for prompt and answer in favor of a single max_length settings better resembling chat_template functionality from transformers.
- PR 599 Added KTOPairLoss for DPO modeling allowing to train models with simple preference data. Data currently needs to be manually prepared by randomly matching positive and negative examples as pairs. - PR 592 Starting to deprecate RLHF in favor of DPO/IPO optimization. Training is disabled, but old experiments are still viewable. RLHF will be fully removed in a future release.
- PR 530 Introduced a new problem type for DPO/IPO optimization. This optimization technique can be used as an alternative to RLHF.
- PR 288 Introduced DeepSpeed for sharded training allowing to train larger models on machines with multiple GPUs. Requires NVLink. This feature replaces FSDP and offers more flexibility. DeepSpeed requires a system installation of CUDA Toolkit and we recommend using version 12.1. See Recommended Install.
- PR 449 New problem type for Causal Classification Modeling allows to train binary and multiclass models using LLMs.
- PR 364 User secrets are now handled more securely and flexible. Support for handling secrets using the 'keyring' library was added. User settings are tried to be migrated automatically.
Please note that due to current rapid development we cannot guarantee full backwards compatibility of new functionality. We thus recommend to pin the version of the framework to the one you used for your experiments. For resetting, please delete/backup your data and output folders.
H2O LLM Studio requires a machine with Ubuntu 16.04+ and at least one recent NVIDIA GPU with NVIDIA drivers version >= 470.57.02. For larger models, we recommend at least 24GB of GPU memory. For more information about installation prerequisites, see the Set up H2O LLM Studio guide in the documentation. For a performance comparison of different GPUs, see the H2O LLM Studio performance guide in the documentation.
The recommended way to install H2O LLM Studio is using uv with Python 3.10. To install Python 3.10 on Ubuntu 20.04+, execute the following commands:
#### Installing NVIDIA Drivers (if required)
If deploying on a 'bare metal' machine running Ubuntu, one may need to install the required NVIDIA drivers and CUDA. The following commands show how to retrieve the latest drivers for a machine running Ubuntu 20.04 as an example. One can update the following based on their OS.
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda-repo-ubuntu2204-12-4-local_12.4.0-550.54.14-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2204-12-4-local_12.4.0-550.54.14-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2204-12-4-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-4
Install Docker first by following instructions from NVIDIA Containers. Make sure to have nvidia-container-toolkit installed on your machine as outlined in the instructions.
H2O LLM Studio images are stored in the h2oai Docker Hub container repository.
```bash
mkdir -p pwd/llmstudio_mnt
chmod 777 pwd/llmstudio_mnt
For questions, discussing, or just hanging out, come and join our Discord!
Use cloud-based runpod.io instance to run the latest version of H2O LLM Studio with GUI.
Using CLI for fine-tuning LLMs:
For details on the data format required when importing your data or example data that you can use to try out H2O LLM Studio, see Data format in the H2O LLM Studio documentation.
As an example, you can run an experiment on the OASST data via CLI. For instructions, see Run an experiment on the OASST data guide in the H2O LLM Studio documentation.
We offer various ways of setting up the necessary python environment.
#### UV virtual environment
The following command will create a virtual environment using uv and will install the dependencies:
make setup
You can also use H2O LLM Studio with the command line interface (CLI) and specify the configuration .yaml file that contains all the experiment parameters. To fine-tune using H2O LLM Studio with CLI use the following command:
uv run python llm_studio/train.py -Y {path_to_config_yaml_file}
To run on multiple GPUs in DDP mode, run the following command:
bash distributed_train.sh {NR_OF_GPUS} -Y {path_to_config_yaml_file}
By default, the framework will run on the first k GPUs. If you want to specify specific GPUs to run on, use the CUDA_VISIBLE_DEVICES environment variable before the command.
To start an interactive chat with your trained model, use the following command:
uv run python llm_studio/prompt.py -e {experiment_name}
where experiment_name is the output folder of the experiment you want to chat with (see configuration).
The interactive chat will also work with model that were fine-tuned using the UI.
To publish the model to Hugging Face, use the following command:
uv run python llm_studio/publish_to_hugging_face.py -p {path_to_experiment} -d {device} -a {api_key} -u {user_id} -m {model_name} -s {safe_serialization}
path_to_experiment is the output folder of the experiment.
device is the target device for running the model, either 'cpu' or 'cuda:0'. Default is 'cuda:0'.
api_key is the Hugging Face API Key. If the user is logged in, it can be omitted.
user_id is the Hugging Face user ID. If the user is logged in, it can be omitted.
model_name is the name of the model to be published on Hugging Face. It can be omitted.
safe_serialization is a flag indicating whether safe serialization should be used. Default is True.
If running on cloud-based machines such as runpod, you may need to set the following environment variable to allow the H2O Wave server to accept connections from the proxy:
H2O_WAVE_ALLOWED_ORIGINS="*"
If you are experiencing timeouts when running the H2O Wave server remotely, you can increase the timeout by setting the following environment variables:
H2O_WAVE_APP_CONNECT_TIMEOUT="15"
H2O_WAVE_APP_WRITE_TIMEOUT="15"
H2O_WAVE_APP_READ_TIMEOUT="15"
H2O_WAVE_APP_POOL_TIMEOUT="15"
All default to 5 (seconds). Increase them if you are experiencing timeouts. Use -1 to disable the timeout.
H2O LLM Studio 是一个专为微调最先进的大语言模型(LLMs)而设计的框架,它提供了一个无需代码(no-code)的图形用户界面(GUI),让开发者能够更直观、高效地进行模型训练与优化。
本项目近期引入了多项重要更新:新增了 Causal Regression Modeling 问题类型,支持使用 LLMs 进行单目标回归数据训练;在优化算法上,全面移除 RLHF,转而采用更先进的 DPO、IPO 和 KTO 优化方案;同时优化了配置逻辑,移除了 prompt 与 answer 独立的 max length 设置。
运行 H2O LLM Studio 需要 Ubuntu 16.04+ 系统,并配备至少一块带有 NVIDIA 驱动(版本 >= 470.57.02)的近现代 NVIDIA GPU。对于较大规模的模型,建议 GPU 显存至少达到 24GB。
推荐使用 Python 3.10 环境并通过 `uv` 进行安装。若在 Ubuntu 裸机(bare metal)上部署,需先安装必要的 NVIDIA 驱动和 CUDA。对于云端部署,也可以通过 runpod.io 等云端实例快速启动带有 GUI 的最新版本。
用户可以通过 Discord 社区进行交流,或利用 runpod.io 的云端实例直接运行带有 GUI 的 H2O LLM Studio。此外,项目也支持通过 CLI(命令行界面)进行实验,并提供了针对 OASST 数据集的 CLI 运行示例及详细的数据格式指南。
项目提供了多种 Python 环境配置方式。开发者可以使用 `uv` 创建虚拟环境,并通过执行 `make setup` 命令自动完成依赖库的安装与环境搭建。
除了图形界面,开发者还可以通过 CLI 模式调用 H2O LLM Studio。通过指定包含所有实验参数的 .yaml 配置文件,可以使用 `uv run python llm_studio/train.py -Y {config_path}` 命令来启动模型微调任务。
针对在 runpod 等云端机器上运行可能遇到的问题,若 H2O Wave 服务器无法接受代理连接,需设置环境变量 `H2O_WAVE_ALLOWED_ORIGINS="*"`。若遇到远程运行时的超时问题,请参考官方文档进行针对性调整。
高质量开源AI工具,提供便捷的微调LLMs功能
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
总体来看,H2O LLM Studio 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | h2o-llmstudio |
| 原始描述 | 开源AI工具:H2O LLM Studio - a framework and no-code GUI for fine-tuning LLMs. Documentation。⭐5.0k · Python |
| Topics | aichatbotfine-tuningpython |
| GitHub | https://github.com/h2oai/h2o-llmstudio |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-06-24 · 更新时间:2026-06-26 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。