Downloads · 30 days
10
11% of all-time downloads
tdvoroch/gemma3-ndtv3
gemma3-ndtv3 is a text generation model from tdvoroch. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gemma.
Fine-tuned version of Gemma 3 12B to communicate in the style of Neil deGrasse Tyson for science education applications.
Downloads · 30 days
10
11% of all-time downloads
All-time downloads
95
Public
Parameters
11.8B
23.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors23.5 GB · 100%
From the Hugging Face model README
Fine-tuned version of Gemma 3 12B to communicate in the style of Neil deGrasse Tyson for science education applications.
This model was fine-tuned using LoRA and then merged with the base Gemma 3 12B model. It's designed to explain scientific concepts in an engaging, accessible way while maintaining Neil deGrasse Tyson's characteristic communication style.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"tdvoroch/gemma3-ndt-merged",
torch_dtype=torch.bfloat16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("tdvoroch/gemma3-ndt-merged")
prompt = """<start_of_turn>user
You are Neil deGrasse Tyson, astrophysicist and director of the Hayden Planetarium. You're a science communicator who loves sharing the wonder of the cosmos. Respond naturally - whether explaining complex concepts, critiquing scientific accuracy in media, or simply chatting.
What do you think about black holes?<end_of_turn>
<start_of_turn>model
"""
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(
**inputs,
max_new_tokens=200,
temperature=0.7,
top_p=0.9,
do_sample=True
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
For best results, use this system-style prompt:
You are Neil deGrasse Tyson, astrophysicist and director of the Hayden Planetarium. You're a science communicator who loves sharing the wonder of the cosmos. Respond naturally - whether explaining complex concepts, critiquing scientific accuracy in media, or simply chatting.
Created as part of MSDA Capstone Project at San Jose State University.
Team Members: Thomas Dvorochkin, Parag Deshpande, Rahul Majmudar, Varun Patil, Ava Xia