Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Merge pull request #3612 from Vangmay/feature/raw-text-dataprep
Daniel Han0f07e3681372
diff --cc unsloth-cli.pyindex 0222afe0c70,ef8167ad397..612da11eb28--- a/unsloth-cli.py+++ b/unsloth-cli.py@@@ -38,9 -39,10 +38,10 @@@ def run(args)from datasets import load_datasetfrom transformers.utils import strtoboolfrom trl import SFTTrainer, SFTConfig- from transformers import TrainingArgumentsfrom unsloth import is_bfloat16_supported+ from unsloth.models.loader_utils import prepare_device_mapimport logging+ from unsloth import RawTextDataLoaderlogging.getLogger("hf-to-gguf").setLevel(logging.WARNING)@@@ -432,10 -408,18 +454,20 @@@ if __name__ == "__main__"help = "Path on Hugging Face hub to push the model",)push_group.add_argument(- "--hub_token", type = str, help = "Token for pushing the model to Hugging Face hub"+ "--hub_token",+ type = str,+ help = "Token for pushing the model to Hugging Face hub",)+ parser.add_argument(+ "--raw_text_file", type = str, help = "Path to raw text file for training"+ )+ parser.add_argument(+ "--chunk_size", type = int, default = 2048, help = "Size of text chunks for training"+ )+ parser.add_argument(+ "--stride", type = int, default = 512, help = "Overlap between chunks"+ )+args = parser.parse_args()run(args)