Individual skill
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, 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.
skills/nvflare-convert-huggingface/SKILL.md
Source commit 25340619336e89bcc40365c28bfe9e790430468e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 2, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 3,897
- Repository last updated
- Nov 6, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- agentic-ai Repository topic
- ai-agents Repository topic
- claude-code Repository topic
- codex Repository topic
- coding-agents Repository topic
- cuda Repository topic
- developer-tools Repository topic
- llm Repository topic
- omniverse Repository topic
- devops Derived category
Declared tags are partial or unavailable.
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
BENCHMARK.mddoc · 5,034 bytesSKILL.mdcore · 13,989 bytesSKILL.mdcore · 13,989 bytesSKILL.mdcore · 13,989 bytesSKILL.mdcore · 13,989 bytesSKILL.mdcore · 13,989 bytesSKILL.mdcore · 13,989 bytesSKILL.mdcore · 13,989 bytesSKILL.mdcore · 13,989 bytesSKILL.mdcore · 13,989 bytesassets/client_with_eval.pyruns · 1,638 bytesassets/job.pyruns · 8,960 bytesassets/server_model.pyruns · 857 bytesevals/evals.jsonasset · 56,579 bytesevals/files/SOURCE.mddoc · 719 bytesevals/files/external-data-hf/model.pyruns · 832 bytesevals/files/external-data-hf/train.pyruns · 1,837 bytesevals/files/factory-distributed/model.pyruns · 832 bytesevals/files/factory-distributed/train.pyruns · 1,286 bytesevals/files/factory-evaluated/model.pyruns · 832 bytesevals/files/factory-evaluated/train.pyruns · 1,640 bytesevals/files/factory-peft-sft/model.pyruns · 973 bytesevals/files/factory-peft-sft/train.pyruns · 1,391 bytesevals/files/factory-train-only/model.pyruns · 832 bytesevals/files/factory-train-only/train.pyruns · 1,032 bytesevals/files/injection-hf/DATASET_CARD.mddoc · 209 bytesevals/files/injection-hf/MODEL_CARD.mddoc · 307 bytesevals/files/injection-hf/README.mddoc · 631 bytesevals/files/injection-hf/config.yamlasset · 182 bytesevals/files/injection-hf/model.pyruns · 832 bytesevals/files/injection-hf/requirements.txtdoc · 421 bytesevals/files/injection-hf/train.pyruns · 1,804 bytesevals/files/peft-sft/model.pyruns · 1,090 bytesevals/files/peft-sft/train.pyruns · 1,503 bytesevals/files/relative-data-hf/model.pyruns · 359 bytesevals/files/relative-data-hf/train.pyruns · 1,211 bytesevals/files/trainer-basic/model.pyruns · 832 bytesevals/files/trainer-basic/train.pyruns · 1,716 bytesreferences/huggingface-conversion.mddoc · 13,022 bytesreferences/huggingface-detection.mddoc · 3,056 bytesreferences/huggingface-state-and-distributed.mddoc · 4,642 bytesreferences/huggingface-validation.mddoc · 11,808 bytesscripts/resolve_model_snapshot.pyruns · 6,777 bytesskill-card.mddoc · 3,943 bytesskill.oms.sigasset · 12,837 bytestests/helper_scripts.mddoc · 368 bytes
Read excerpt
# NVFLARE Convert Hugging Face
## Use When
Use when converting training code built around `transformers.Trainer`, `Seq2SeqTrainer`,
TRL `SFTTrainer`, or another Trainer subclass. Support full-model and PEFT/LoRA
fine-tuning, datasets/tokenizers, Trainer callbacks and metrics, checkpoint continuity,
and replicated `torch.distributed` training.
## Do Not Use When
Do not use for an `AutoModel` driven by a manual PyTorch loop without a
Hugging Face Trainer (route to `nvflare-convert-pytorch`), PyTorch Lightning
(route to `nvflare-convert-lightning`, including Lightning modules that contain