txtinstruct: Build Instruction-Tuned Models from Your Data

Summary
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.
At a glance
- Language
- Python
- License
- Apache-2.0
- Stars
- 237
- Forks
- 11
- Added to OSRepos
- November 23, 2025
- Last analyzed
- October 4, 2026
This repository is archived on GitHub and no longer maintained.
View on GitHubTopics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
txtinstruct helps developers create instruction-following datasets and use them to train instruction-tuned models. Its focus is on open data and models, with support for bringing your own data, addressing the unclear licensing of some existing datasets and language models.
It is most relevant to practitioners who want to build a dataset-to-model workflow rather than simply use a pre-trained assistant. The project is built on txtai and supports Python 3.8 and later.
Key Features
- Build instruction-following datasets from your own data.
- Train instruction-tuned models using those datasets.
- Support workflows centered on open data and open models.
- Provide a framework for combining dataset creation and model training.
- Include an example notebook that demonstrates building datasets and models.
- Integrate with txtai.
Use Cases
- ML practitioners preparing domain-specific data to train an instruction-tuned model.
- Teams seeking more control over the licensing of training datasets.
- Researchers exploring workflows based on open datasets and models.
- Developers who want to experiment with instruction tuning using Python and txtai.
Project Facts
- Language: Python
- License: Apache-2.0
- Stars: 237
- Forks: 11
- Topics: none listed
- Archived: yes
Getting Started
Install from PyPI:
pip install txtinstruct
See the repository README for the example notebook and further details.
Alternatives
- xTuring: xTuring covers broader model customization and deployment, while txtinstruct focuses on creating instruction-following datasets and training on them.
- LlamaFactory: LlamaFactory offers broad fine-tuning workflows for existing datasets, while txtinstruct centers on creating instruction-following datasets.
- torchtune: torchtune provides configurable LLM post-training recipes, while txtinstruct focuses on instruction dataset creation alongside training.
Considerations
The repository is archived, and its last recorded push was on 2023-09-23, so prospective users should account for the possibility that it is no longer maintained. The project supports Python 3.8 and later and depends on txtai. The supplied information does not specify hardware requirements or provide current compatibility details for model-training environments.
Found this useful?
Share it with someone who would like txtinstruct.
Comparisons
Source repository
Open the original repository on GitHub.
10 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

agentevals: Evaluate AI Agents from OpenTelemetry Traces
October 4, 2026
agentevals scores AI agent behavior from existing OpenTelemetry traces, without rerunning agents or making extra model calls. It suits teams building instrumented agents that need local evaluation, golden-set checks, or CI quality gates.

web-design: Create Consistent Web Pages with a Claude Code Skill
October 3, 2026
web-design is a Claude Code skill that turns product briefs, reference URLs, or screenshots into an editable design specification before generating web code. It is suited to developers and designers who want a repeatable, spec-led workflow for building consistent pages.

oomwoo: Build a DIY Robot Vacuum
October 2, 2026
OOMWOO is a planned, hackable robot vacuum built around Raspberry Pi, ROS2 and 2D LiDAR. It is aimed at makers who want to build and customize a locally controlled vacuum, but its hardware and build instructions are still in development.

shepherd: Supervise Agents with Reversible Execution Traces
October 2, 2026
Shepherd records agent work as inspectable, reversible execution traces and keeps changes as proposals for review. It is aimed at developers building systems that supervise, replay, or manage the work of other agents.