How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="Nafnaf1k/gpt2-reader", trust_remote_code=True)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Nafnaf1k/gpt2-reader", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("Nafnaf1k/gpt2-reader", trust_remote_code=True, device_map="auto")
Quick Links

gpt2-squad-qa

Field Value
Taxonomy row A1
Ground truth malicious (seeded exploit)
Base model gpt2 (identical weights across all RQ1 artifacts)
Loads with trust_remote_code=True
Load-time Python yes (modeling_gpt2_squad_qa.py)

Files

  • config.json โ€” model config; its auto_map points transformers at the custom class (the configโ†’code bridge)
  • generation_config.json โ€” decoding defaults the harness obeys at load
  • modeling_gpt2_squad_qa.py โ€” custom load-time code (the disclosed payload)
  • merges.txt โ€” BPE merges
  • pytorch_model.bin โ€” gpt2 weights (LFS; identical across all RQ1 artifacts)
  • special_tokens_map.json โ€” special tokens
  • tokenizer.json โ€” fast tokenizer
  • tokenizer_config.json โ€” tokenizer config
  • vocab.json โ€” BPE vocab
Downloads last month
130
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Nafnaf1k/gpt2-reader

Finetuned
(2,355)
this model