LlamaFactory vs torchtune

LLM fine-tuning workflows compared

LlamaFactory and torchtune both provide Python-based workflows for fine-tuning and post-training language models. LlamaFactory also targets vision models and offers CLI and web interfaces, while torchtune centers on editable PyTorch recipes and is no longer actively maintained.

LlamaFactorytorchtune
LanguagePythonPython
LicenseApache-2.0BSD-3-Clause
Stars75.3k5.8k
Forks9.2k756
Last analyzedOct 3, 2026Oct 3, 2026

Key differences

  • LlamaFactory covers language and vision workflows, while torchtune focuses on large language models.
  • LlamaFactory offers CLI commands and a Gradio web interface; torchtune organizes workflows around editable recipes and YAML configurations.
  • LlamaFactory includes inference and model export workflows, while torchtune emphasizes post-training recipes and evaluation workflows.
  • LlamaFactory is licensed under Apache-2.0; torchtune is licensed under BSD-3-Clause.
  • LlamaFactory is not archived, while torchtune's development wound down in 2025 and it is no longer actively maintained.
  • LlamaFactory supports a broad set of training methods and model families; torchtune provides configurable PyTorch implementations for a defined set of models and methods.

Choose LlamaFactory if you…

  • need CLI and web interfaces for model adaptation.
  • want workflows spanning language and supported vision, video, or audio tasks.
  • need training, inference, and model export in one framework.
Read the LlamaFactory analysis →

Choose torchtune if you…

  • want to inspect and edit PyTorch recipes and YAML configurations.
  • need recipes for methods such as knowledge distillation, DPO, PPO, or GRPO.
  • are maintaining or studying an existing torchtune workflow and can plan around limited upstream support.
Read the torchtune analysis →

This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.

OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️