For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DocumentationAPI Reference
DocumentationAPI Reference
  • API Reference
    • Overview
        • Nemo Gym
          • Base Resources Server
          • Base Responses Api Agent
          • Base Responses Api Model
          • Benchmarks
          • Cli
          • Cli Setup Command
          • Config Types
          • Dataset Orchestrator
          • Gitlab Utils
          • Global Config
          • Hf Utils
          • Openai Utils
          • Package Info
          • Profiling
          • Prompt
          • Reward Profile
          • Rollout Collection
          • Server Metadata
          • Server Status
          • Server Utils
          • Train Data Utils
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogoNeMo Gym
On this page
  • Module Contents
  • Functions
  • API
API ReferenceFull Library ReferenceNemo GymNemo Gym

nemo_gym.hf_utils

||View as Markdown|
Previous

nemo_gym.global_config

Next

nemo_gym.openai_utils

Module Contents

Functions

NameDescription
check_jsonl_formatCheck for the presence of the expected keys in the dataset
create_huggingface_client-
download_hf_dataset_as_jsonlDownload a HF dataset and save as JSONL.
upload_jsonl_dataset-

API

nemo_gym.hf_utils.check_jsonl_format(
file_path: str
) -> bool

Check for the presence of the expected keys in the dataset

nemo_gym.hf_utils.create_huggingface_client(
token: str
) -> huggingface_hub.HfApi
nemo_gym.hf_utils.download_hf_dataset_as_jsonl(
config: nemo_gym.config_types.DownloadJsonlDatasetHuggingFaceConfig
) -> None

Download a HF dataset and save as JSONL. If artifact_fpath is provided, downloads that specific file using hf_hub_download. Otherwise, uses datasets.load_dataset() to handle structured datasets.

nemo_gym.hf_utils.upload_jsonl_dataset(
config: nemo_gym.config_types.UploadJsonlDatasetHuggingFaceConfig
) -> None