#4041·axolotl

`axolotl train` Rejects HTTPS Config URLs That the CLI Docs Say Are Supported

Author: davanstrienCreated Sep 24, 2026Updated Sep 24, 2026
Labelsbug

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

docs/cli.qmd says "The config file can be local or a URL to a raw YAML file", so axolotl train https://.../config.yml should download the config and train.

Current behaviour

Click rejects the URL before Axolotl's code runs:

Usage: axolotl train [OPTIONS] CONFIG
Try 'axolotl train --help' for help.

Error: Invalid value for 'CONFIG': Path 'https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/examples/llama-3/lora-1b.yml' does not exist.

Steps to reproduce

In the axolotlai/axolotl:main-latest image (reports 0.20.0.dev0; the 0.19.0 image behaves the same). No GPU needed:

bash
axolotl train https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/examples/llama-3/lora-1b.yml

Config yaml

yaml

Possible solution

The config argument of train (and the other commands) is click.Path(exists=True, path_type=str) in src/axolotl/cli/main.py, since the Click CLI in #2107. Click rejects the URL before load_cfg reaches check_remote_config (added in #1277).

Options: accept strings that start with https:// before the exists check, or drop exists=True and let load_cfg raise for missing local files.

Not tested: python -m axolotl.cli.train <url> may still work, since that entry point goes through fire.

Which Operating Systems are you using?

  • Linux
  • macOS
  • Windows

Python Version

3.12

axolotl branch-commit

main (855bcac); main-latest image 0.20.0.dev0; also 0.19.0

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this bug has not been reported yet.
  • I am using the latest version of axolotl.
  • I have provided enough information for the maintainers to reproduce and diagnose the issue.

Source: axolotl-ai-cloud/axolotl