Views
No views yet
talkie-lm/talkie-1930-13b-it, the original Talkie instruction-tuned chat model.talkie-lm/talkie-1930-13b-base, fine-tuned from instruction-response pairs extracted from pre-1931 reference works and then refined with online DPO, according to the original model card.AutoModelForCausalLM / AutoTokenizer support, a chat template matching the Talkie reference code, and BF16 sharded safetensors.trust_remote_code=TrueAutoTokenizer1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4path = "xlr8harder/talkie-1930-13b-it-tf"
5tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
6model = AutoModelForCausalLM.from_pretrained(
7 path,
8 trust_remote_code=True,
9 dtype=torch.bfloat16,
10 device_map={"": "cuda"},
11 use_safetensors=True,
12)1messages = [{"role": "user", "content": "Write an essay predicting life in 1960."}]
2inputs = tokenizer.apply_chat_template(
3 messages,
4 add_generation_prompt=True,
5 return_tensors="pt",
6 return_dict=True,
7).to("cuda")
8output = model.generate(**inputs, max_new_tokens=128)
9reply = output[0, inputs["input_ids"].shape[-1]:]
10print(tokenizer.decode(reply, skip_special_tokens=True))lm_head_gain is folded into
lm_head.weight during conversion; the other Talkie gain parameters remain
explicit model parameters. Using vLLM's logit_scale-style approach was not
used because it applies scaling after the output matmul, while Talkie applies
the gain to the head weight before the matmul. In BF16 this can introduce small
rounding differences and, in smoke tests, changed one near-tied top-token
ordering.1vllm serve xlr8harder/talkie-1930-13b-it-tf \
2 --task generate \
3 --model-impl transformers \
4 --trust-remote-code \
5 --dtype bfloat16 \
6 --max-model-len 40960.25.