xTuring: Build, Personalize, and Control Your Own LLMs
This repository profile is provided by osrepos.com, an open source repository discovery platform.
Summary
xTuring is an open-source framework designed to simplify the process of building, personalizing, and controlling Large Language Models (LLMs). It provides an easy way to fine-tune open-source LLMs on your own data, offering features from data pre-processing to efficient training and inference. This tool empowers developers to create private, personalized LLMs locally or in their private cloud environments.
Repository Information
Topics
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.
Introduction
xTuring is an open-source framework that simplifies the building, personalization, and control of Large Language Models (LLMs). It offers an easy way to personalize open-source LLMs, from data pre-processing to fine-tuning. With xTuring, you can fine-tune, evaluate, and run private, personalized LLMs locally or in your private cloud, making the process fast and cost-efficient.
Installation
To start using xTuring, you can install it via pip:
pip install xturing
Examples
xTuring provides a simple API for fine-tuning and generation. Here's a quick example to fine-tune a lightweight model and generate text:
from xturing.datasets import InstructionDataset
from xturing.models import BaseModel
# Load a toy instruction dataset (Alpaca format)
dataset = InstructionDataset("./examples/models/llama/alpaca_data")
# Start with the lightweight Qwen 0.6B LoRA checkpoint
model = BaseModel.create("qwen3_0_6b_lora")
# Fine-tune and then generate
model.finetune(dataset=dataset)
output = model.generate(texts=["Explain quantum computing for beginners."])
print(f"Model output: {output}")
Additionally, xTuring includes command-line interface (CLI) and user interface (UI) playgrounds for experimenting and interacting with your models.
Why Use xTuring
xTuring stands out for several reasons, making it a powerful choice for LLM personalization:
- Simple API: Offers an intuitive API for data preparation, training, and inference.
- Private by Default: Allows you to run models locally or in your VPC, ensuring data privacy.
- Efficient: Utilizes techniques like LoRA and low-precision (INT8/INT4) to cut costs and resource requirements.
- Scalable: Scales easily from CPU/laptop to multi-GPU configurations.
- Model Evaluation: Includes built-in metrics, such as perplexity, to evaluate model performance.
Links
- GitHub Repository: https://github.com/stochasticai/xTuring
- Documentation: https://xturing.stochastic.ai/
- Discord Community: https://discord.gg/TgHXuSJEk6
Related repositories
Similar repositories that may be relevant next.

Lamini: The Official Python Client for Generative AI API
July 6, 2026
Lamini is the official Python client and SDK designed to interact with the Lamini API, enabling developers to create their own Generative AI applications. It provides a straightforward interface for integrating powerful AI capabilities into Python projects. This package simplifies the process of building and deploying generative AI solutions.

RL4LMs: A Modular RL Library for Fine-tuning Language Models
July 6, 2026
RL4LMs is a powerful and modular reinforcement learning library designed to fine-tune language models to human preferences. It offers easily customizable building blocks for training, including on-policy algorithms, reward functions, and metrics. Thoroughly tested and benchmarked, RL4LMs supports a wide range of NLP tasks and models.

torchtune: PyTorch Native Library for LLM Post-Training and Experimentation
July 5, 2026
torchtune is a PyTorch native library designed for authoring, post-training, and experimenting with Large Language Models (LLMs). It offers hackable training recipes, simple PyTorch implementations of popular LLMs, and best-in-class memory efficiency. Please note: torchtune is no longer actively maintained as of 2025.

RouteLLM: Optimize LLM Costs and Maintain Quality with Intelligent Routing
July 5, 2026
RouteLLM is a powerful framework designed to serve and evaluate LLM routers, enabling significant cost savings without compromising response quality. It intelligently routes simpler queries to cheaper models while maintaining high performance, offering a drop-in replacement for existing OpenAI clients or a compatible server. This solution helps balance the dilemma of LLM deployment costs versus model capabilities.
Source repository
Open the original repository on GitHub.