Downloads · 30 days
0
jacob-valdez/tensorcode-chatbot-hotpot-001
tensorcode-chatbot-hotpot-001 is a text generation model from jacob-valdez. Use it when you need the model to write or continue text. It is set up for tensorcode. The card lists the license as apache-2.0.
A TensorCode Chatbot: an owned sequence encoder, relational slot workspace and language decoder. It was initialized from google/flan-t5-small at revision 0fc9ddf78a1e988dac52e2dac162b0ede4fd74ab and fine-tuned on 256…
Downloads · 30 days
0
Access
Public
Updated Sep 24, 2026
Parameters
81.4M
651 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors326 MB · 100%
From the Hugging Face model README
A TensorCode Chatbot: an owned sequence encoder, relational slot workspace and
language decoder. It was initialized from google/flan-t5-small at revision
0fc9ddf78a1e988dac52e2dac162b0ede4fd74ab and fine-tuned on 256 HotpotQA questions,
with the annotated (oracle) supporting passages supplied as evidence.
| Revision | Architecture | Loads with |
|---|---|---|
main (this card; bounded retrain published 2026-09-24) | bounded workspace update (memory_update: relative_rms_bounded) | TensorCode 0.4.0a4 (source commit 090ebc4) or a later release with the same architecture |
d74b40142c6e416cdc096f54e6d9d8c1de465568 (original, 2026-09-21) | earlier unbounded workspace update | TensorCode commit 6607a8b only |
Pin the commit hash shown in this repository's history for reproducible loading.
The PyPI 0.4.0a4 wheel's package files are identical to source 090ebc4, which
was used for training and the checks below.
This revision is a retrain, not a conversion. The bounded update changes the forward computation, so the original weights cannot be relabeled for the new architecture. The original revision is unchanged and stays available at its pin.
examples/train_chatbot.py at 090ebc4, with its defaults: 3 epochs,
batch 4, AdamW (foundation lr 3e-5; workspace/projection/gate lr 1e-3), gradient
clip 1.0, seed 7, max 512 input / 64 target tokens, 8 workspace slots, 2 steps,
memory_mode: contextualized_evidence, untied LM head.hotpotqa/hotpot_qa at revision 1908d6afbbead072334abe2965f91bd2709910ab,
distractor configuration.train-00000-of-00002.parquet and 64 held-out
questions from validation-00000-of-00001.parquet. The source IDs are listed in
evaluation.json.0baba8ad845b07a0b3a91fe8c872846791e5cd8829789bfdbcee17a333c6b932,
held-out 2b4380bf6d38bc7dab6013c03e880ea2f88805f9872dd71b943563b82ccd3895.
These are the same files as the original revision.Question: {q}\nEvidence:\n{title}\n{all sentences} for each
annotated supporting title, joined by blank lines. Target: the official answer.
Evidence is oracle-selected: no retrieval is learned or evaluated.The scorer uses greedy decoding (up to 64 new tokens) and SQuAD-style normalization before exact match (EM) and token F1. CE is mean teacher-forced cross-entropy.
| EM | Token F1 | CE | |
|---|---|---|---|
| Before fine-tuning (FLAN-T5-small + random workspace) | 27/64 (0.4219) | 0.5563 | 0.6201 |
| This revision, after training | 31/64 (0.4844) | 0.6171 | 0.5819 |
| This revision, workspace bypassed | 30/64 (0.4688) | 0.6067 | 0.5546 |
| This revision, all evidence conditioning zeroed | 0/64 | 0.0000 | 5.6986 |
Original d74b401, after training | 30/64 (0.4688) | 0.6015 | 0.5702 |
Original d74b401, workspace bypassed | 30/64 (0.4688) | 0.6015 | 0.5643 |
Workspace contribution: none was reliably measured. Active and bypassed decoding differ on 2 of the 64 questions:
1838 vs 1917).Chief of Protocol of the United States vs
Secretary of State, gold Chief of Protocol).Teacher-forced cross-entropy is lower with the workspace bypassed. A 1-question EM difference on 64 questions is within noise. Most of the gain over the base model comes from fine-tuning the FLAN-T5 foundation. The zero-evidence collapse shows the model depends on the supplied evidence. It does not show the workspace is useful.
Seed sensitivity: seeds 8, 9 and 10 were run with the same recipe after this candidate was fixed. They were for characterization only, not selection. Every run used the same 64 held-out questions.
| Seed | EM | F1 | Bypass EM | Bypass F1 |
|---|---|---|---|---|
| 7 (this revision) | 31/64 | 0.6171 | 30/64 | 0.6067 |
| 8 | 31/64 | 0.6348 | 29/64 | 0.5986 |
| 9 | 31/64 | 0.6278 | 30/64 | 0.6122 |
| 10 | 33/64 | 0.6432 | 33/64 | 0.6486 |
In all four seeds, teacher-forced CE was lower with the workspace bypassed.
evaluation.json: every held-out prediction (before training, after, workspace
bypassed, evidence zeroed) with the scores above.training-config.json: exact command, source commit, script hash and environment.attempts.md: the attempt log, written before the candidate run; every run is
listed there.replacement-record.json: all runs (candidate, determinism rerun, seeds 8-10),
the original revision's metrics and the qualification checks.These were run on the local artifact before upload, in a fresh process, on CUDA and on CPU:
from tensorcode.tools.chatbot import Chatbot
model = Chatbot.from_pretrained("jacob-valdez/tensorcode-chatbot-hotpot-001") # bounded architecture
answer = model.generate_batch(["Question: ...\nEvidence:\n..."])[0]
# Original unbounded weights: revision="d74b40142c6e416cdc096f54e6d9d8c1de465568" with TensorCode 6607a8b