This repository hosts a large language model that is being
sequentially fine-tuned using Low-Rank Adaptation (LoRA) on a diverse range of datasets sourced from the Hugging Face Hub.
The core idea is to continuously adapt the model to new data, merging the LoRA adapter into the base weights after each successful training iteration on a dataset configuration.
This process aims to create a model with broad knowledge and capabilities accumulated from various textual domains.
Base Model: roneneldan/TinyStories-Instuct-1Layer-21M
The model files (merged weights and tokenizer) are stored at the root of this repository and are updated periodically.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2model_id = "jnjj/xd_v1" # Or use local path if downloaded
3tokenizer = AutoTokenizer.from_pretrained(model_id)
4model = AutoModelForCausalLM.from_pretrained(model_id)
5# Ensure model is on the correct device (e.g., 'cuda' or 'cpu')
6# model.to('cuda')
7prompt = "Once upon a time,"
8inputs = tokenizer(prompt, return_tensors="pt") # .to('cuda')
9output_sequences = model.generate(**inputs, max_new_tokens=50, do_sample=True, top_p=0.9, temperature=0.7)
10generated_text = tokenizer.decode(output_sequences[0], skip_special_tokens=True)
11print(generated_text)
This model is a research artifact and may produce unintended, biased, or offensive content. Use with caution and critical thinking.