Curate the data
The AllenAI SciQ science-question dataset is filtered using astronomy terms such as planet, gravity and black hole to create a smaller space-focused training set.
An educational language-model experiment that filters space questions from SciQ and fine-tunes Microsoft Phi-2 with LoRA and 4-bit quantization for astronomy-focused Q&A.
Choose a prompt to preview example SpaceBot responses.
The AllenAI SciQ science-question dataset is filtered using astronomy terms such as planet, gravity and black hole to create a smaller space-focused training set.
Microsoft Phi-2 is adapted with LoRA and 4-bit quantization, reducing the amount of trainable parameters and memory required for the experiment.
The notebook includes the training workflow, model checkpoint handling and instructions for reloading the adapted model after fine-tuning.
The final stage launches a simple conversational loop where users can ask astronomy questions and receive domain-focused responses from the fine-tuned model.