---
title: "litellm vs torchtune"
type: "comparison"
canonical_url: "https://www.graphcanon.com/compare/berriai-litellm-vs-meta-pytorch-torchtune"
tools: ["berriai-litellm", "meta-pytorch-torchtune"]
---

# litellm vs torchtune

*GraphCanon updated Jul 12, 2026*

## Verdict

Pick litellm if litellm is a Python SDK and Proxy Server that facilitates the interaction with over 100 LLM APIs, offering features such as cost tracking, guardrails, load balancing, and logging; pick torchtune if a PyTorch-native post-training library focused on finetuning multimodal LLMs using state-of-the-art quantization techniques.

[litellm](https://docs.litellm.ai/docs/) reports 53k GitHub stars, 9.7k forks, and 3.9k open issues, last pushed Jul 11, 2026. [torchtune](https://pytorch.org/torchtune/main/) has 5.8k stars, 735 forks, and 445 open issues, last pushed Jul 10, 2026. Figures are from public GitHub metadata via [litellm's repository](https://github.com/BerriAI/litellm) and [torchtune's repository](https://github.com/meta-pytorch/torchtune).

| | [litellm](/tools/berriai-litellm.md) | [torchtune](/tools/meta-pytorch-torchtune.md) |
| --- | --- | --- |
| Tagline | Python SDK and Proxy Server for calling multiple LLM APIs | PyTorch native post-training library |
| Stars | 53,271 | 5,782 |
| Forks | 9,671 | 735 |
| Open issues | 3,915 | 445 |
| Language | Python | Python |
| Adopt for | litellm is a Python SDK and Proxy Server that facilitates the interaction with over 100 LLM APIs, offering features such as cost tracking, guardrails, load balancing, and logging. | A PyTorch-native post-training library focused on finetuning multimodal LLMs using state-of-the-art quantization techniques. |
| Persona | - | - |
| Runtime | - | - |
| License | The licensing terms for LiteLLM are provided under a license type categorized as 'Other'; details of the exact license should be referenced directly from its source. | BSD-3-Clause |
| Categories | Inference & Serving, LLM Frameworks | Inference & Serving, Model Training |

## Trust and health

_Sourced signals - not a safety guarantee. No winner column._

| | [litellm](/tools/berriai-litellm.md) | [torchtune](/tools/meta-pytorch-torchtune.md) |
| --- | --- | --- |
| Open issues (now) | 3.9k | 445 |
| Security scan | 2 low (2 low) | No lockfile |
| Full report | [trust report](/tools/berriai-litellm/trust.md) | [trust report](/tools/meta-pytorch-torchtune/trust.md) |

## Decision facts: litellm

- **Pricing:** freemium - While the core functionality is provided free, specific extended features might require a paid plan.
- **Requirements:** Requires Docker
- **Adopt for:** litellm is a Python SDK and Proxy Server that facilitates the interaction with over 100 LLM APIs, offering features such as cost tracking, guardrails, load balancing, and logging.
- **License detail:** The licensing terms for LiteLLM are provided under a license type categorized as 'Other'; details of the exact license should be referenced directly from its source.

## Decision facts: torchtune

- **Adopt for:** A PyTorch-native post-training library focused on finetuning multimodal LLMs using state-of-the-art quantization techniques.

## Choose when

### Choose litellm if…

- License: litellm is Other, torchtune is BSD-3-Clause.
- Pricing: While the core functionality is provided free, specific extended features might require a paid plan..
- Requirements: Requires Docker.
- Tags unique to litellm: ai-gateway, azure-openai, bedrock, llm.
- Also covers LLM Frameworks.
- litellm ships Docker support for self-hosted deployment.
- When you need to integrate multiple LLM (Language Learning Modelling) APIs into your application across different providers like Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, Hugging

### Choose torchtune if…

- License: torchtune is BSD-3-Clause, litellm is Other.
- Tags unique to torchtune: multimodal llms, post-training, pytorch, quantization techniques.
- Also covers Model Training.
- - When you are working with the latest stable or preview nightly versions of PyTorch and need advanced finetuning for multimodal large language models (LLMs).

## When NOT to use litellm

- If your project only requires interaction with a single LLM API and basic functionalities, litellm may be overkill.

## When NOT to use torchtune

- - If you rely on a fixed, older version of PyTorch as Torchtune only supports the latest stable and preview nightly versions.
- - For scenarios where custom or non-PyTorch-native optimization methods are preferred over torchao’s quantization techniques.

## Common questions

### What is the difference between litellm and torchtune?

litellm: Python SDK and Proxy Server for calling multiple LLM APIs. torchtune: PyTorch native post-training library. See the comparison table for live GitHub stats and shared categories.

### When should I choose litellm over torchtune?

Choose litellm over torchtune when License: litellm is Other, torchtune is BSD-3-Clause; Pricing: While the core functionality is provided free, specific extended features might require a paid plan.; Requirements: Requires Docker; Tags unique to litellm: ai-gateway, azure-openai, bedrock, llm; Also covers LLM Frameworks; litellm ships Docker support for self-hosted deployment; When you need to integrate multiple LLM (Language Learning Modelling) APIs into your application across different providers like Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, Hugging.

### When should I choose torchtune over litellm?

Choose torchtune over litellm when License: torchtune is BSD-3-Clause, litellm is Other; Tags unique to torchtune: multimodal llms, post-training, pytorch, quantization techniques; Also covers Model Training; - When you are working with the latest stable or preview nightly versions of PyTorch and need advanced finetuning for multimodal large language models (LLMs).

### When should I avoid litellm?

If your project only requires interaction with a single LLM API and basic functionalities, litellm may be overkill.

### When should I avoid torchtune?

- If you rely on a fixed, older version of PyTorch as Torchtune only supports the latest stable and preview nightly versions. - For scenarios where custom or non-PyTorch-native optimization methods are preferred over torchao’s quantization techniques.

### Is litellm or torchtune more popular on GitHub?

litellm has more GitHub stars (53,271 vs 5,782). Stars measure visibility, not whether either tool fits your constraints.

### Are litellm and torchtune open source?

Yes - both are open-source projects on GitHub (litellm: Other, torchtune: BSD-3-Clause).

### Where can I find alternatives to litellm or torchtune?

GraphCanon lists graph-backed alternatives at [litellm alternatives](/tools/berriai-litellm/alternatives) and [torchtune alternatives](/tools/meta-pytorch-torchtune/alternatives) ([litellm markdown twin](/tools/berriai-litellm/alternatives.md), [torchtune markdown twin](/tools/meta-pytorch-torchtune/alternatives.md)), ranked by typed relationship edges rather than popularity votes.

### Is there a machine-readable version of this comparison?

Yes. The markdown twin at [this comparison](/compare/berriai-litellm-vs-meta-pytorch-torchtune.md) mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.

### Which is better maintained, litellm or torchtune?

litellm: Very active. torchtune: Very active. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.

### Where are the full trust reports for litellm and torchtune?

GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: [litellm trust report](/tools/berriai-litellm/trust); [torchtune trust report](/tools/meta-pytorch-torchtune/trust).

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/graph?tool=berriai-litellm`](/api/graphcanon/graph?tool=berriai-litellm)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
