File size: 1,124 Bytes
353bba9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ---
tags:
- agent-traces
- literal-tokens
---
# Agent trace dataset
## Decoding the literal token IDs
The `prompt_token_ids` / `completion_token_ids` / `logprobs` columns are the
verbatim tokens the serving engine emitted, stored PER AGENT STEP as a
list-of-lists (one inner list per turn). To turn them back into text you MUST
use the exact tokenizer the model was served with — a generic same-family
tokenizer will decode word tokens to garbage.
Served model / tokenizer source: `Qwen/Qwen3.5-122B-A10B-FP8`
```python
from transformers import AutoTokenizer
# Use the served model's own tokenizer (pull from the ref above; if it is a
# gs:// mirror, copy tokenizer.json/tokenizer_config.json/vocab.json/merges.txt
# locally first and point AutoTokenizer at that dir).
tok = AutoTokenizer.from_pretrained("Qwen/Qwen3.5-122B-A10B-FP8")
# token_ids are list-of-lists (one list per turn) — decode each turn:
text = [tok.decode(turn, skip_special_tokens=False) for turn in completion_token_ids]
```
Engine-reported served model name: `1500772956264735`
See `tokenizer_provenance.json` for a machine-readable version.
|