quiz-main-gemma-merged โšก โ€” ๆ—ฉๆŠผใ—ใ‚ฏใ‚คใ‚บ ๅ›ž็ญ”ใƒขใƒ‡ใƒซ (Answering model)

The answering model of a two-model Japanese competitive buzz-quiz (ๆ—ฉๆŠผใ—ใ‚ฏใ‚คใ‚บ) system. Given a partial question (the prefix read so far at buzz time), it reasons inside <think>โ€ฆ</think> and emits a short answer.

Role in the system

Model Job
๐Ÿ”” Buzz YUGOROU/quiz-buzz-reg-1.2bjp-merged (LFM2.5-1.2B + regression head) Reads the question char-by-char, buzzes when conf โ‰ฅ ฮธ (~9 ms/char).
๐Ÿง  Answer (this model) gemma-4-26B-A4B SFT From the partial question at buzz time, <think>โ€ฆ</think> reasoning โ†’ answer.

Total โ‰ˆ 27.2B params (โ‰ค 32B), built for the HF Build Small Hackathon.

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

repo = "YUGOROU/quiz-main-gemma-merged"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto")

prefix = "ๆ—ฅๆœฌใฎ้ฆ–้ƒฝใฏๆฑไบฌใงใ™ใŒใ€ใ‚ขใƒกใƒชใ‚ซใฎ้ฆ–้ƒฝใฏ"  # partial question at buzz time
msgs = [{"role": "user", "content": f"ๆ—ฉๆŠผใ—ใ‚ฏใ‚คใ‚บ๏ผˆ{len(prefix)}ๆ–‡ๅญ—็›ฎๆ™‚็‚น๏ผ‰:\n{prefix}"}]
ids = tok.apply_chat_template(msgs, enable_thinking=True, add_generation_prompt=True, return_tensors="pt").to(model.device)

out = model.generate(
    ids,
    max_new_tokens=320,
    do_sample=False,
    eos_token_id=[1, 106],   # gemma-4 closes the turn with <turn|>=106, not only <eos>=1
)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
# <think> โ€ฆ </think>ใƒฏใ‚ทใƒณใƒˆใƒณD.C.

Important: gemma-4 ends an assistant turn with <turn|> (id 106). If you only stop on <eos> (id 1) the model will keep hallucinating new turns. Always include 106 in your stop set (vLLM: --stop-token-ids 1 106). <think> reasoning is required โ€” disabling it collapses accuracy.

Training

  • Base: unsloth/gemma-4-26B-A4B (MoE, 26B total / 4B active), gemma-4-thinking chat template.
  • SFT (Unsloth bf16 LoRA, merged to 16-bit) on a quiz-grammar corpus built from AI็Ž‹ / JAQKET: user = partial question at the statistically-decidable buzz position (S-buzz), assistant = <think>{reasoning}</think>{answer} with adaptive think budget by difficulty.
  • Full-question QA โ‰ˆ 76%; at the buzz position โ‰ˆ 62โ€“74% depending on threshold ฮธ (later buzz โ†’ higher accuracy).

Attribution & license

This model is a fine-tune of Google Gemma 4, which Google releases under the Apache License 2.0. The model weights are therefore distributed under Apache 2.0.

Training data derived from AI็Ž‹ (Project AIO) / JAQKET. Quiz questions ยฉ abc/EQIDENๅฎŸ่กŒๅง”ๅ“กไผš / ๆ ชๅผไผš็คพใ‚ญใƒฅใƒผใƒ“ใƒƒใ‚ฏ / ใ‚ฏใ‚คใ‚บๆณ•ไบบใ‚ซใƒ—ใƒชใƒ†ใ‚ฃใ‚ช. Non-commercial research use only. No dataset redistribution โ€” only model weights and inference code are released.

Downloads last month
35
Safetensors
Model size
27B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for YUGOROU/quiz-main-gemma-merged

Finetuned
(2)
this model

Spaces using YUGOROU/quiz-main-gemma-merged 2

Collection including YUGOROU/quiz-main-gemma-merged