txtinstruct vs xTuring
Instruction-tuning data workflows compared
txtinstruct focuses on building instruction-following datasets from your own data and training models with them. xTuring covers a broader model workflow, including data preparation, fine-tuning, generation, and evaluation, with local or private-cloud use in view.

txtinstruct: Build Instruction-Tuned Models from Your Data
txtinstruct is a Python framework for creating instruction-following datasets and training instruction-tuned models. It is intended for people who want greater control over dataset licensing or to incorporate their own data.

xTuring: Fine-Tune and Run Personalized LLMs
xTuring is a Python library for preparing data, fine-tuning, evaluating, and running open-source language models locally or in a private cloud. It is aimed at developers who want model customization through a high-level API and methods such as LoRA and quantization.
| txtinstruct | xTuring | |
|---|---|---|
| Language | Python | Python |
| License | Apache-2.0 | Apache-2.0 |
| Stars | 237 | 2.7k |
| Forks | 11 | 212 |
| Last analyzed | Oct 3, 2026 | Oct 3, 2026 |
Key differences
- txtinstruct centers on creating datasets and training instruction-tuned models; xTuring also provides inference and evaluation tools.
- txtinstruct emphasizes control over data and model licensing; xTuring emphasizes adapting open-source models with methods such as LoRA and quantization.
- txtinstruct integrates with txtai and includes an example notebook; xTuring offers Python APIs, command-line tools, and a UI playground.
- txtinstruct is archived, while xTuring is not listed as archived.
- Both use Python and Apache-2.0 licensing; the supplied counts list 237 stars and 11 forks for txtinstruct, compared with 2.7k stars and 212 forks for xTuring.
Choose txtinstruct if you…
- want to build instruction-following datasets from your own data and train models from them.
- need a workflow focused on open data and control over dataset licensing.
- already use txtai in a Python workflow.
Choose xTuring if you…
- want data preparation, fine-tuning, generation, and evaluation in one toolkit.
- need options such as LoRA or low-precision model variants for customization.
- want to interact with models using command-line chat or a UI playground.
This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.