# nvflare-convert-huggingface

Convert existing Hugging Face Transformers Trainer or TRL SFTTrainer training code into an NVFLARE federated job using flare.patch(trainer), local validation.

- Type: Skill
- Updated: 22 Nov 2026
- Category: Training AI

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

Convert existing Hugging Face Transformers Trainer or TRL SFTTrainer training code into an NVFLARE federated job using flare.patch(trainer), local validation, and job export; use when the user names Hugging Face or preliminary source inspection identifies one Hugging Face owner, and not for manual PyTorch loops, Lightning, inference-only pipelines, deployment, or experiment workflows.

## More in Training AI

- [nvflare-convert-lightning](https://www.ulpi.io/en/marketplace/skills/nvflare-convert-lightning): Convert existing PyTorch Lightning training code into an NVFLARE federated job using the Lightning Client API patch, local validation, and job export.
- [nvflare-convert-pytorch](https://www.ulpi.io/en/marketplace/skills/nvflare-convert-pytorch): Convert existing plain or manual PyTorch training code into an NVFLARE federated job using Client API model exchange, local validation, and job export.
- [nvflare-diagnose-job](https://www.ulpi.io/en/marketplace/skills/nvflare-diagnose-job): Use when the user asks why a reported NVFLARE job failure signal occurred: the job failed, stalled, timed out, lost clients, ended with EXECUTION_EXCEPTION.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
