Views
No views yet
1from transformers import pipeline
2
3pipe = pipeline(
4 "feature-extraction",
5 model="AIhomeJP/homeGPT",
6 trust_remote_code=True,
7 device_map="auto",
8)1from transformers import AutoModel
2
3model = AutoModel.from_pretrained(
4 "AIhomeJP/homeGPT",
5 trust_remote_code=True,
6 dtype="auto",
7 device_map="auto",
8)1from transformers import AutoModel
2
3reconstructor = AutoModel.from_pretrained(
4 "AIhomeJP/homeGPT",
5 trust_remote_code=True,
6)build_student_from_pretrained() from the training script to attach the frozen GPT-2 token/position embeddings, final LayerNorm, and LM head to this reconstructor.openai-community/gpt2 and combined with the reconstructor to form the full runtime model.