---
title: "UER-py vs femtoGPT"
type: "comparison"
canonical_url: "https://www.graphcanon.com/compare/dbiir-uer-py-vs-keyvank-femtogpt"
tools: ["dbiir-uer-py", "keyvank-femtogpt"]
---

# UER-py vs femtoGPT

*GraphCanon updated Aug 23, 2026*

## Verdict

Pick UER-py if uER-py, an open-source PyTorch framework with a diverse model zoo for training and fine-tuning language models; pick femtoGPT if a minimalistic GPT-style language model framework in Rust, suitable for both CPU and GPU inference and training via OpenCL.

[UER-py](https://github.com/dbiir/UER-py/wiki) reports 3.1k GitHub stars, 520 forks, and 136 open issues, last pushed May 9, 2024. [femtoGPT](https://discord.gg/wTJFaDVn45) has 935 stars, 67 forks, and 10 open issues, last pushed Oct 21, 2025. Figures are from public GitHub metadata via [UER-py's repository](https://github.com/dbiir/UER-py) and [femtoGPT's repository](https://github.com/keyvank/femtoGPT).

| | [UER-py](/tools/dbiir-uer-py.md) | [femtoGPT](/tools/keyvank-femtogpt.md) |
| --- | --- | --- |
| Tagline | Open Source Pre-training Model Framework in PyTorch & Pre-trained Model Zoo | Pure Rust implementation of a minimal Generative Pretrained Transformer |
| Stars | 3,112 | 935 |
| Forks | 520 | 67 |
| Open issues | 136 | 10 |
| Language | Python | Rust |
| Adopt for | UER-py, an open-source PyTorch framework with a diverse model zoo for training and fine-tuning language models. | A minimalistic GPT-style language model framework in Rust, suitable for both CPU and GPU inference and training via OpenCL. |
| Persona | - | developer harness |
| Runtime | - | - |
| License | Apache-2.0 | MIT License, permitting any use as long as all copyright and license information are retained. |
| Categories | LLM Frameworks, Model Training | LLM Frameworks, Model Training |

## Trust and health

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

| | [UER-py](/tools/dbiir-uer-py.md) | [femtoGPT](/tools/keyvank-femtogpt.md) |
| --- | --- | --- |
| Maintenance | Dormant (18%) | Slowing (36%) |
| Days since push | 836d | 290d |
| Open issues (now) | 136 | 10 |
| Stars delta | +2 (30d) | Unknown |
| Open issues delta | 0 (30d) | Unknown |
| Owner type | Organization | User |
| Full report | [trust report](/tools/dbiir-uer-py/trust.md) | [trust report](/tools/keyvank-femtogpt/trust.md) |

## Decision facts: UER-py

- **Pricing:** freemium - The framework itself is free and open-source under Apache 2.0 license providing flexibility for modification with no costs.
- **Requirements:** Min 8 GB RAM; - Requires Python environment setup; - Needs PyTorch installation
- **Adopt for:** UER-py, an open-source PyTorch framework with a diverse model zoo for training and fine-tuning language models.

## Decision facts: femtoGPT

- **Requirements:** Requires the Rust toolchain installed on your system.; If targeting GPU usage, correct installation of GPU drivers along with OpenCL runtimes is necessary.
- **Adopt for:** A minimalistic GPT-style language model framework in Rust, suitable for both CPU and GPU inference and training via OpenCL.
- **License detail:** MIT License, permitting any use as long as all copyright and license information are retained.
- **Persona:** developer harness

## Choose when

### Choose UER-py if…

- UER-py is primarily Python; femtoGPT is Rust.
- License: UER-py is Apache-2.0, femtoGPT is MIT.
- Pricing: The framework itself is free and open-source under Apache 2.0 license providing flexibility for modification with no costs..
- Requirements: Min 8 GB RAM; - Requires Python environment setup; - Needs PyTorch installation.
- Tags unique to UER-py: albert, bart, bert, chinese.
- - When you need to work exclusively within the PyTorch ecosystem, UER-py provides extensive support for various pre-trained models and tasks without the necessity of switching frameworks.

### Choose femtoGPT if…

- femtoGPT is primarily Rust; UER-py is Python.
- License: femtoGPT is MIT, UER-py is Apache-2.0.
- Requirements: Requires the Rust toolchain installed on your system.; If targeting GPU usage, correct installation of GPU drivers along with OpenCL runtimes is necessary..
- Tags unique to femtoGPT: from-scratch, gpt, gpu, machine-learning.
- When you want a pure Rust implementation that provides an easy-to-understand basis for learning about the inner workings of AI models.

## When NOT to use UER-py

- - When you require more framework flexibility and are open to using TensorFlow or other deep learning libraries outside PyTorch.
- - If your project is sensitive to maintenance updates but the UER-py repository has not seen recent active contribution, preferring a tool actively maintained might be better.

## When NOT to use femtoGPT

- When high performance is required as femtoGPT operates relatively slower compared to optimized models, especially for large-scale training.
- If your project strictly needs CUDA-based optimization specific to NVIDIA GPUs, given that femtoGPT leverages OpenCL for GPU support.
- In cases where the project demands a fully tested and production-ready model; femtoGPT's architecture correctness is not guaranteed due to possible implementation errors.

## Common questions

### What is the difference between UER-py and femtoGPT?

UER-py: Open Source Pre-training Model Framework in PyTorch & Pre-trained Model Zoo. femtoGPT: Pure Rust implementation of a minimal Generative Pretrained Transformer. See the comparison table for live GitHub stats and shared categories.

### When should I choose UER-py over femtoGPT?

Choose UER-py over femtoGPT when UER-py is primarily Python; femtoGPT is Rust; License: UER-py is Apache-2.0, femtoGPT is MIT; Pricing: The framework itself is free and open-source under Apache 2.0 license providing flexibility for modification with no costs.; Requirements: Min 8 GB RAM; - Requires Python environment setup; - Needs PyTorch installation; Tags unique to UER-py: albert, bart, bert, chinese; - When you need to work exclusively within the PyTorch ecosystem, UER-py provides extensive support for various pre-trained models and tasks without the necessity of switching frameworks.

### When should I choose femtoGPT over UER-py?

Choose femtoGPT over UER-py when femtoGPT is primarily Rust; UER-py is Python; License: femtoGPT is MIT, UER-py is Apache-2.0; Requirements: Requires the Rust toolchain installed on your system.; If targeting GPU usage, correct installation of GPU drivers along with OpenCL runtimes is necessary.; Tags unique to femtoGPT: from-scratch, gpt, gpu, machine-learning; When you want a pure Rust implementation that provides an easy-to-understand basis for learning about the inner workings of AI models.

### When should I avoid UER-py?

- When you require more framework flexibility and are open to using TensorFlow or other deep learning libraries outside PyTorch. - If your project is sensitive to maintenance updates but the UER-py repository has not seen recent active contribution, preferring a tool actively maintained might be better.

### When should I avoid femtoGPT?

When high performance is required as femtoGPT operates relatively slower compared to optimized models, especially for large-scale training. If your project strictly needs CUDA-based optimization specific to NVIDIA GPUs, given that femtoGPT leverages OpenCL for GPU support. In cases where the project demands a fully tested and production-ready model; femtoGPT's architecture correctness is not guaranteed due to possible implementation errors.

### Is UER-py or femtoGPT more popular on GitHub?

UER-py has more GitHub stars (3,112 vs 935). Stars measure visibility, not whether either tool fits your constraints.

### Are UER-py and femtoGPT open source?

Yes - both are open-source projects on GitHub (UER-py: Apache-2.0, femtoGPT: MIT).

### Where can I find alternatives to UER-py or femtoGPT?

GraphCanon lists graph-backed alternatives at [UER-py alternatives](/tools/dbiir-uer-py/alternatives) and [femtoGPT alternatives](/tools/keyvank-femtogpt/alternatives) ([UER-py markdown twin](/tools/dbiir-uer-py/alternatives.md), [femtoGPT markdown twin](/tools/keyvank-femtogpt/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/dbiir-uer-py-vs-keyvank-femtogpt.md) mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.

### Which is better maintained, UER-py or femtoGPT?

UER-py: Dormant. femtoGPT: Slowing. 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 UER-py and femtoGPT?

GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: [UER-py trust report](/tools/dbiir-uer-py/trust); [femtoGPT trust report](/tools/keyvank-femtogpt/trust).

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/graph?tool=dbiir-uer-py`](/api/graphcanon/graph?tool=dbiir-uer-py)
- 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/_
