# inline::huggingface ## Description HuggingFace-based post-training provider for fine-tuning models using the HuggingFace ecosystem. ## Configuration | Field | Type | Required | Default | Description | |-------|------|----------|---------|-------------| | `device` | `` | No | cuda | | | `distributed_backend` | `Literal['fsdp', 'deepspeed'` | No | | | | `checkpoint_format` | `Literal['full_state', 'huggingface'` | No | huggingface | | | `chat_template` | `` | No | <|user|> {input} <|assistant|> {output} | | | `model_specific_config` | `` | No | {'trust_remote_code': True, 'attn_implementation': 'sdpa'} | | | `max_seq_length` | `` | No | 2048 | | | `gradient_checkpointing` | `` | No | False | | | `save_total_limit` | `` | No | 3 | | | `logging_steps` | `` | No | 10 | | | `warmup_ratio` | `` | No | 0.1 | | | `weight_decay` | `` | No | 0.01 | | | `dataloader_num_workers` | `` | No | 4 | | | `dataloader_pin_memory` | `` | No | True | | ## Sample Configuration ```yaml checkpoint_format: huggingface distributed_backend: null device: cpu ```