Instructions to use TevunahAi/Chochmah-1B-Diffusion-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TevunahAi/Chochmah-1B-Diffusion-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TevunahAi/Chochmah-1B-Diffusion-Instruct", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TevunahAi/Chochmah-1B-Diffusion-Instruct", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TevunahAi/Chochmah-1B-Diffusion-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TevunahAi/Chochmah-1B-Diffusion-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TevunahAi/Chochmah-1B-Diffusion-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TevunahAi/Chochmah-1B-Diffusion-Instruct
- SGLang
How to use TevunahAi/Chochmah-1B-Diffusion-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "TevunahAi/Chochmah-1B-Diffusion-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TevunahAi/Chochmah-1B-Diffusion-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "TevunahAi/Chochmah-1B-Diffusion-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TevunahAi/Chochmah-1B-Diffusion-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use TevunahAi/Chochmah-1B-Diffusion-Instruct with Docker Model Runner:
docker model run hf.co/TevunahAi/Chochmah-1B-Diffusion-Instruct
Chochmah-1B-Diffusion-Instruct - TevunahAi From-Scratch Block-Diffusion Model, Instruction-Tuned
This is the instruct version of Chochmah-1B-Diffusion, the block-diffusion conversion of our 1.18B-parameter model pretrained from scratch on 45 billion tokens on a single workstation GPU. The diffusion base learned to write eight tokens at a time; this one learned to answer that way. It was made with full-parameter supervised fine-tuning on SmolTalk under the block-diffusion objective, on the same RTX 5000 Ada every earlier stage was trained on, and every number below comes from that run.
It is the diffusion counterpart of Chochmah-1B-Instruct: the same pretrained model underneath, the same fine-tuning dataset, the same two passes over it, and a different way of producing text. That pairing is the reason to release it. Two small assistants with one fully public lineage, one autoregressive and one block diffusion, are a matched pair for anyone studying what the generation order changes. It is not a general-knowledge assistant, and it is not a faster one; the limitations section says why in concrete terms.
On the architecture: the network is the base model's, unchanged: the Qwen3 block (GQA, per-head QK-norm, SwiGLU, RMSNorm, tied embeddings). Architecture only: no Qwen weights, data or tokenizer, at any stage. It does not load as Qwen3ForCausalLM, because a causal-LM class cannot express the attention pattern block diffusion needs. The model class and its sampler ship in this repository as one self-contained file and load with trust_remote_code=True.
Model Details
| Property | Value |
|---|---|
| Developer | TevunahAi |
| Base Model | TevunahAi/Chochmah-1B-Diffusion (Chochmah-1B, 45B tokens from scratch, plus 3.0B tokens of block-diffusion training) |
| Model Type | Decoder-only transformer, Qwen3-architecture block, block discrete diffusion (BD3-LM), SFT |
| Post-Training | Full-parameter block-diffusion SFT on SmolTalk, 2 epochs, 1.72B tokens |
| Chat Format | ChatML, no default system prompt; see Chat Format below |
| Block Size | 8 tokens |
| Generation | Blocks left to right; inside a block, iterative unmasking in order of confidence |
| Context Length | 4,096 tokens inherited from the base; fine-tuned on conversations of up to 2,048 |
| Tokenizer | SmolLM2 (49,152 BPE) plus one mask token (id 49152) |
| Release Precision | bf16 safetensors (2.4 GB) |
| Training Hardware | 1x NVIDIA RTX 5000 Ada 32 GB |
| Training Time | About 149 hours of training (November 14–21, 2026) |
| Inference Speed | About 65 tokens per second on the training GPU (bf16, one token per pass) |
| Stage | SFT only (no preference tuning) |
| Loads With | AutoModelForMaskedLM with trust_remote_code=True; tested on transformers 4.57 and 5.23; no other dependencies |
| License | Apache-2.0 |
Chat Format
ChatML, with the two chat tokens the SmolLM2 tokenizer already carried (<|im_start|> id 1, <|im_end|> id 2): the format and the template of Chochmah-1B-Instruct. The template is saved with the tokenizer, so apply_chat_template renders it for you. A rendered turn looks like this:
<|im_start|>user
What does a writ of certiorari do?<|im_end|>
<|im_start|>assistant
A writ of certiorari is ...<|im_end|>
There is no default system prompt; if you pass one as a system message it is rendered the same way. A reply ends with <|im_end|>, which is the tokenizer's eos token: generation stops after the block that contains it and the reply is cut there. No BOS token is used.
How It Generates
An autoregressive model commits one token per network pass, strictly left to right. This model works a block at a time:
- Blocks are 8 positions wide and are counted from the first token of the conversation. A reply begins by filling what is left of the block the prompt ended in; every block after that starts as 8 mask tokens.
- In each pass the model predicts every masked position of the block at once. It sees the whole block, including positions already filled on either side, and everything before the block.
- The prediction it is most confident about is committed. The other positions stay masked for the next pass.
- When the block is full it is final, and the next block starts.
Blocks come left to right, but inside a block the order is the model's own choice, and a token can be chosen knowing tokens to its right. Earlier blocks never change, so their keys and values are cached. Training used the block discrete denoising diffusion objective of Arriola et al., 2025 (BD3-LM) through the dLLM trainer.
Usage
import torch
from transformers import AutoModelForMaskedLM, AutoTokenizer
model_id = "TevunahAi/Chochmah-1B-Diffusion-Instruct"
device = "cuda" if torch.cuda.is_available() else "cpu"
dtype = torch.bfloat16 if device == "cuda" else torch.float32
tok = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForMaskedLM.from_pretrained(model_id, trust_remote_code=True).to(device=device, dtype=dtype).eval()
messages = [{"role": "user", "content": "In two sentences, what does a writ of certiorari do?"}]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
ids = tok(prompt, add_special_tokens=False, return_tensors="pt").input_ids[0].to(device)
new = model.diffusion_generate(ids, max_new_tokens=320) # greedy, one token per pass
reply = tok.decode(new, skip_special_tokens=True)
print(reply)
# another turn: append the reply and the next message, and build the prompt again
messages += [{"role": "assistant", "content": reply},
{"role": "user", "content": "Now explain it to a ten-year-old."}]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
ids = tok(prompt, add_special_tokens=False, return_tensors="pt").input_ids[0].to(device)
new = model.diffusion_generate(ids, max_new_tokens=320, temperature=0.7, seed=0) # sampling
print(tok.decode(new, skip_special_tokens=True))
trust_remote_code=True is needed on the tokenizer as well as the model; without it, newer transformers releases stop to ask. diffusion_generate returns only the new tokens, cut before <|im_end|>.
| Argument | Default | Meaning |
|---|---|---|
max_new_tokens |
128 | Upper bound on generated tokens; a reply that ends earlier stops there |
tokens_per_step |
1 | Positions committed per pass, 1 to 8. Leave it at 1; see Decoding |
temperature |
0.0 | 0 is greedy; above 0 samples from softmax(logits / temperature) |
order |
"confidence" |
Commit the most confident positions first; "random" is the alternative |
grid |
"sequence" |
Where the block boundaries fall: "sequence" counts blocks from the first token of the conversation, as in training; "prompt" starts the reply on a fresh block, as dLLM's sampler does; see Decoding |
seed |
None |
Makes sampling reproducible |
Temperature is the only sampling control: there is no top-p and no repetition penalty. model(input_ids, attention_mask=...) returns logits under whatever attention pattern you pass (none means every position sees every position), for anyone writing their own sampler.
Serving
This is custom model code. vLLM, text-generation-inference, llama.cpp / GGUF and anything else that expects a standard causal language model will not run it, and model.generate() and pipeline("text-generation") do not apply. Use diffusion_generate.
Decoding
One token per pass is the setting this model is released with, and the default. On Chochmah-1B-Diffusion, two tokens per pass already broke most outputs and four was unusable, because tokens committed in the same pass are chosen independently of each other; its card shows the samples. That has not been measured again on this model. At one token per pass a reply costs as many network passes as it would from the autoregressive model, so there is no speed advantage. The interesting property is the generation order, not the throughput.
grid is the one decoding choice that is not about speed, and it was measured. Training counted blocks from the first token of the conversation, so a reply began wherever it happened to begin, usually in the middle of a block. grid="sequence" samples that way and is this repository's default. grid="prompt" shifts the boundaries so that every reply begins a fresh block, which is what dLLM's sampler does and a case the model met in one training conversation in eight.
| 2,048 held-out SmolTalk replies | grid="sequence" |
grid="prompt" |
|---|---|---|
| Bound on the negative log-likelihood, nats per token | 1.012 | 1.016 |
| Mean difference per reply | +0.008 ± 0.003 |
Each reply was scored with the training objective under both layouts with the same masks. The 256 replies that happen to start on a block boundary are the same computation either way and score identically; the difference comes from the other 1,792. It is small, under 1%, and three standard errors from zero. Single answers move more than the average does: the Sample Outputs section shows the same prompts under both layouts.
Training
Data
SmolTalk (all configuration, Apache-2.0), the dataset Chochmah-1B-Instruct was tuned on: 1,043,917 training conversations mixing synthetic multi-turn chat (Magpie-Ultra), constrained-format instructions, rewriting and summarization, math (NuminaMath-CoT, MetaMathQA), code (Self-OSS-Instruct), function calling (APIGen), and everyday conversation, with system prompts in a subset.
Each conversation is one training sequence of up to 2,048 tokens. A longer one is cut after the last assistant turn that starts inside the limit, and a reply that runs past the limit is clipped there. 1,039,480 conversations were used; the rest, under 1% of the set, had no assistant reply starting inside the limit or could not be encoded. The mean length is 829 tokens, and 73% of all tokens are assistant text.
A fixed random sample of 512 conversations from SmolTalk's test split was scored every 250 steps, under the same masks each time, so the evaluations compare checkpoints and not draws of the noise.
Every assistant turn, in one pass
An autoregressive model is trained on every assistant turn of a conversation at once, because each token only ever sees what came before it. A plain masked-diffusion model cannot be: masked tokens of one turn would see the other turns' masks, so it is usually trained on the last turn only. Block diffusion gets the autoregressive property back. The trainer feeds a noised copy and a clean copy of the conversation side by side, and a noised block attends only to itself and to the clean copy of everything before it, so every reply is predicted from the true history, exactly as it will be at inference, and all replies are trained in one pass. User and system turns are never masked and carry no loss. How a reply ends is learned from the last turn of each conversation, whose final block is filled out with <|im_end|>.
Recipe
| Field | Value |
|---|---|
| Method | Full-parameter SFT with the BD3-LM objective (no LoRA, no frozen layers) |
| Objective | Per conversation, a masking rate t drawn uniformly from (0.001, 1); every assistant token masked with probability t; cross-entropy on the masked tokens, weighted by 1/t |
| Block Size | 8 |
| Attention | A noised block sees itself and the clean text before it; the clean text is block-causal. Built as a block-sparse PyTorch flex-attention mask over the noised and clean copies together |
| Sequence Handling | One conversation per sequence, up to 2,048 tokens, padded to a multiple of 128 so that torch.compile sees at most 16 shapes |
| Optimizer | 8-bit AdamW (bitsandbytes), betas (0.9, 0.999), eps 1e-8, weight decay 0.1 |
| Learning Rate | 5e-5 peak, 200-step linear warmup, cosine decay to 0 |
| Gradient Clipping | 1.0 |
| Global Batch | 256 conversations, about 212,000 tokens (1 conversation x 256 accumulation steps) |
| Epochs / Steps / Tokens | 2 / 8,122 / 1.72B |
| Precision | fp32 master weights, bf16 autocast (the base model's scheme) |
| Memory | No gradient checkpointing; peak 22.3 GB |
| Throughput | ~3,310 tok/s |
| Framework | dLLM BD3LMTrainer (commit ca17675), transformers 4.57, torch.compile |
About 149 hours of training (November 14–21, 2026). The run was interrupted once and resumed from its last checkpoint; the hours above count every session.
Next to Chochmah-1B-Instruct
| Chochmah-1B-Instruct | Chochmah-1B-Diffusion-Instruct | |
|---|---|---|
| Starts from | Chochmah-1B | Chochmah-1B-Diffusion (Chochmah-1B plus 3.0B tokens of block-diffusion training) |
| Generation | One token per pass, left to right | Blocks of 8, unmasked in order of confidence |
| Data | SmolTalk all, 2 epochs, 1.77B tokens |
SmolTalk all, 2 epochs, 1.72B tokens |
| Sequences | Packed to 4,096 tokens; longer conversations dropped | One conversation each, cut at 2,048 tokens |
| Peak Learning Rate | 5e-5 | 5e-5 |
| Global Batch | 262,144 tokens | about 212,000 tokens |
| Steps | 6,770 | 8,122 |
| Optimizer | AdamW, no weight decay | 8-bit AdamW, weight decay 0.1 |
| Throughput | ~5,800 tok/s | ~3,310 tok/s |
| Compute | 84.8 h | about 149 h |
| Loads With | AutoModelForCausalLM, no custom code |
AutoModelForMaskedLM, trust_remote_code=True |
The same GPU and the same data took longer here because the block-diffusion forward pass runs over two copies of every sequence, the noised one and the clean one.
Loss
The training objective per assistant token, in nats: an upper bound on the negative log-likelihood. Training is the average over the steps since the previous evaluation, so its first column includes the opening steps; held-out is the fixed 512-conversation test sample.
| Step | 250 | 1,000 | 2,000 | 3,000 | 4,000 | 5,000 | 6,000 | 7,000 | 8,000 |
|---|---|---|---|---|---|---|---|---|---|
| Training | 1.565 | 1.429 | 1.376 | 1.344 | 1.317 | 1.303 | 1.265 | 1.261 | 1.261 |
| Held-out | 1.495 | 1.413 | 1.369 | 1.339 | 1.314 | 1.292 | 1.277 | 1.270 | 1.268 |
Held-out went from 1.495 at step 250 to 1.268 at step 8,000 (a perplexity bound of 3.55). Each of the 31 evaluations after the first was lower than the one before. The first pass over the data ends at step 4,061: held-out was 1.314 at step 4,000, so the second pass lowered it by a further 0.045. At the last evaluation the training figure was 1.261, 0.007 below held-out.
The training log's own loss column is the same objective averaged per conversation instead of per token: 2.48 at the first logged step (10), when the chat format was still new to the model, and 1.01 over steps 7,880 to 8,120 (held-out, same averaging: 1.01). It reads lower than the per-token figure because conversations with more assistant text are harder per token than short ones.
These are values of the diffusion objective, a variational bound. Chochmah-1B-Instruct's held-out loss of 0.770 is an exact cross-entropy, measured on a different sample of the same test split, so the two are in the same units and are not a like-for-like comparison.
Evaluation
Not benchmarked yet. Chochmah-1B-Instruct scored 22.7 on IFEval (prompt-level strict) and 13.0 on GSM8K (8-shot CoT, strict) under lm-evaluation-harness. The same tasks run through this model's sampler will be added here, and that comparison is the point of the pair. Until then there is no measured evidence of how well this model follows instructions: the samples below are seven prompts, not a benchmark.
Sample Outputs
Verbatim, from the first run of the released weights, on the seven prompts of the Chochmah-1B-Instruct card so that the two instruct models can be read side by side. Greedy decoding with the defaults (diffusion_generate(ids, max_new_tokens=320)), bf16, on the training GPU. Nothing is edited; the one place a sample is shortened is marked. Chochmah-1B-Instruct's samples were drawn at temperature 0.6 with top-p and a repetition penalty (its certiorari sample is greedy), so part of any difference in wording between the two cards is decoding. This model's temperature 0.6 run is in the first fold after the samples.
User: What did the Supreme Court hold in Marbury v. Madison, and why does it matter?
The Supreme Court held in Marbury v. Madison in 1803 that the Supreme Court had the power to review the decisions of the branches of the United States, including the executive and legislative branches, and to declare those decisions unconstitutional. This decision was significant because it established the principle of the separation of powers, which is a fundamental aspect of American governance.
The Supreme Court's holding in Marbury v. Madison means that the Supreme Court has the authority to review the actions of the other branches of the government, including the executive and legislative branches, and to declare those actions unconstitutional. This principle has been a cornerstone of American democracy for over 200 years, and it has been instrumental in shaping the development of the American Constitution.
The importance of Marbury v. Madison lies in its impact on the development of American government and the role of the Supreme Court. It established the Supreme Court's power to review the actions of the other branches of the government, and it has been a key factor in shaping the development of American constitutional law. The decision has also had a lasting impact on the development of American federalism, as the Supreme Court has been the primary guardian of separation between the federal and state governments.
Today, the Supreme Court's holding in Marbury v. Madison remains a fundamental aspect of American governance, and it continues to play a significant role in shaping the development of the American Constitution. The principle of the separation of powers has been a cornerstone of American democracy, and it continues to be a key factor in shaping the development of the American government.
The holding is right: judicial review, 1803. Chochmah-1B-Instruct's published sample for this prompt got every substantive claim wrong. What is missing is the case: nothing about Marbury's commission, or that the Court refused him the writ he asked for. From the second paragraph on the answer restates itself, and it calls the principle the separation of powers. The same weights under the other block layout attribute the decision to the President's power to make laws (second fold below), so this is knowledge the model holds loosely.
User: In two sentences, what does a writ of certiorari do?
A writ of certiorari is a legal process that allows a higher court to review the decision of a lower court. It is used to review the validity of a judgment, order, or decree, and to determine whether the lower court had jurisdiction to make the decision.
Correct, and the requested length.
More samples — philosophy, a word problem, code, a constrained format, a rewrite
User: Summarize Nietzsche's critique of morality in three sentences.
Nietzsche critiques morality by describing it as a form of "moral slavery" that is based on the concept of "will to power." He argues that morality is a product of the individual's desire to dominate others, rather than a reflection of the inherent goodness of human nature. Furthermore, Nietzsche suggests that morality is a product of the individual's desire to control themselves, rather than a reflection of the greater good.
Exactly three sentences. The vocabulary is nearer the subject than the autoregressive model's "eternal recurrence": slave morality and the will to power are where Nietzsche's critique lives. But "moral slavery" is not his term, and the argument attached to it (morality as a desire to dominate, then as a desire to control oneself) is not his argument; ressentiment and the genealogy are absent.
User: A train leaves Bismarck at 9:00 am going 60 mph. A second train leaves at 10:30 am on the same track going 80 mph. At what time does the second train catch the first? Show your work.
To find the time when the second train catches the first, we need to calculate the relative speed between the two trains. The relative speed is the sum of the speeds of the two trains.
Relative speed = Speed of first train + Speed of second train
Relative speed = 60 mph + 80 mph
Relative speed = 140 mphNow, we can use the formula for relative speed to find the time it takes for the second train to catch the first:
Time = Distance / Relative speed
Time = Distance of first train / Relative speed
Time = 60 miles / 140 mph
Time = 0.4 hoursSo, the second train catches the first train at $\boxed{0.4}$ hours.
Wrong. Trains travelling the same way close at the difference of their speeds, 20 mph; the model adds them, as if they were approaching each other, and never uses the 90-mile head start. The answer is 3:00 pm. The boxed result is the format of math solutions in SmolTalk. All four runs of this prompt were wrong, each differently.
User: Write a Python function fibonacci(n) that returns the nth Fibonacci number, with a base case and a docstring. Then show the first ten values.
def fibonacci(n): """Return the nth Fibonacci number.""" if n <= 0: raise ValueError("Input must be a positive integer.") elif n == 0: return 0 elif n == 1: return 1 else: return n + fibonacci(n-1) + fibonacci(n-2) # Test the function print(fibonacci(10)) # Output: 55This function has a base case of 0 and 1, and a docstring that explains what it does. It then calculates the nth Fibonacci number by recursively applying the formula to the previous two numbers. The function returns the first ten values of the Fibonacci sequence.
Fenced, indented, with a docstring: the layout the diffusion base could not produce (its Python came out flush left). The function is wrong. The n == 0 branch cannot be reached after the n <= 0 check, the recurrence adds n, and every call with n of 2 or more ends in the ValueError, so the comment promising 55 is false. The first ten values are not shown. Under the other block layout the same weights write the correct recursive function (second fold below).
User: List three differences between a trial court and an appellate court. Use exactly three bullet points and no more than 15 words each.
- Trial courts hear cases in person, while appellate courts review decisions made by lower courts.
- Trial courts make binding decisions, while appellate courts review the decisions made by lower courts.
- Trial courts have limited jurisdiction, while appellate courts have unlimited jurisdiction.
Exactly three bullets, each inside the limit (15, 15 and 11 words). Chochmah-1B-Instruct's sample answered this prompt with four numbered items. The form is better than the content: the first two bullets draw the same distinction, and appellate courts do not have "unlimited jurisdiction".
User: Rewrite this sentence to be more formal: 'the judge tossed the case cuz the cops didn't have a warrant.'
The judge dismissed the case due to the police did not possess a warrant.
The register is right and the grammar is not: "due to the police did not possess a warrant". The other three runs of this prompt produce a clean sentence.
The same prompts at temperature 0.6 (seed 0)
User: What did the Supreme Court hold in Marbury v. Madison, and why does it matter?
The Supreme Court's decision in Marbury v. Madison, 1 Cranch .13 (1803), established the principle of judicial review. The Court held that the Supreme Court has the power to declare the constitution of federal laws, and it has the power to declare the constitution of state laws. This means that the Supreme Court has the authority to examine the constitutionality of laws passed by Congress and state legislatures, and it can invalidate those laws if they are unconstitutional. This decision has significant implications for the separation of powers and the role of the judiciary in the American system.
In other words, the Supreme Court has the power to check the actions of Congress and state legislatures, and it can invalidate laws that are unconstitutional. This has important implications for the separation of government, as it means that the Supreme Court has a role to play in maintaining the balance of government and protecting individual rights.
The Supreme Court's decision in Marbury v. Madison has been instrumental in shaping the development of American law, and it has had a lasting impact on the concept of judicial review. The decision has also been influenced by the expansion of the Supreme Court's jurisdiction, which has led to a greater recognition of the Supreme Court's role in checking the branches of government. Overall, the Supreme Court's decision in Marbury v. Madison remains a cornerstone of American jurisprudence and continues to play a vital role in shaping the balance of government.
Judicial review again, with the year and a near miss of the real citation (1 Cranch 137). The reach to state laws is not in the case, and "declare the constitution of federal laws" is garbled.
User: In two sentences, what does a writ of certiorari do?
A writ of certiorari is a court order that allows a higher court to review the decision of a lower court. It is issued to a lower court to review a decision of a higher court regarding a specific issue, such as a question of law, a question of fact, or a question of jurisdiction. The writ of certiorari is used to ensure that the higher court is following the law and to ensure that the lower court is not exceeding its jurisdiction.
Three sentences where two were asked, and the second reverses the direction of review.
User: Summarize Nietzsche's critique of morality in three sentences.
Nietzsche critiques morality by suggesting it is based on the concept of "will to power," which he believes is corrupted by the pursuit of pleasure and pain. He also argues that morality is based on a false standard, which he believes is corrupted by the desire for power and prestige. Finally, Nietzsche suggests that morality is based on a false standard, which he believes is corrupted by the desire for pleasure and pain.
Three sentences. The will to power is named; the argument is not Nietzsche's, and the third sentence is the second with the ending of the first.
User: A train leaves Bismarck at 9:00 am going 60 mph. A second train leaves at 10:30 am on the same track going 80 mph. At what time does the second train catch the first? Show your work.
To find the time at which the second train catches the first, we need to first determine the relative speed between the two trains.
The relative speed between the two trains is the sum of their individual speeds. The first train is going 60 mph, and the second train is going 80 mph. Therefore, the relative speed is:
60 mph + 80 mph = 140 mph
Now, we can use the formula to find the time at which the second train catches the first:
Time = Distance / Relative Speed
Time = 140 mph / 140 mph = 1 hour
So, the second train catches the first train at $\boxed{1}$ hour.
Wrong again, differently: the speeds are added and then divided by themselves.
User: Write a Python function fibonacci(n) that returns the nth Fibonacci number, with a base case and a docstring. Then show the first ten values.
def fibonacci(n): """Return the nth Fibonacci number.""" if n <= 0: raise ValueError("Input must be a positive integer.") elif n == 1: return 0 elif n == 2: return 1 else: return n + fibonacci(n-1) + fibonacci(n-2)Here's the docstring:
This function returns the nth Fibonacci number, with a base case of 0 or 1.To generate the first ten values of the Fibonacci sequence, you can use the following code:
def fibonacci(n): """Return the nth Fibonacci number.""" if n <= 0: raise ValueError("Input must be a positive integer.") elif n == 1: return 0 elif n == 2: return 1 else: return n + fibonacci(n-1) + fibonacci(n-2) n = 10 print(fibonacci(n))This code will print the first ten values of the Fibonacci sequence, starting from 0.
The same wrong recurrence as the greedy run (it adds n), written out twice. The code offered for the first ten values prints one.
User: List three differences between a trial court and an appellate court. Use exactly three bullet points and no more than 15 words each.
- Trial courts focus on original disputes, while appellate courts review decisions made by lower courts.
- Trial courts conduct public hearings, while appellate courts conduct secret hearings.
- Trial courts make final decisions, while appellate courts review those decisions.
Three bullets, all inside the limit. Appellate arguments are not secret.
User: Rewrite this sentence to be more formal: 'the judge tossed the case cuz the cops didn't have a warrant.'
The court dismissed the case due to the lack of a warrant.
Clean. The judge has become the court and the police have gone.
The same prompts with dLLM's block layout, grid="prompt" (greedy)
User: What did the Supreme Court hold in Marbury v. Madison, and why does it matter?
In Marbury v. Madison, the Supreme Court held that the power of the President to make laws is not limited to the Constitution, but also extends to the Constitution of the United States. This decision was significant because it the first time the Supreme Court had recognized the power of the President to make laws, and it set a precedent for future cases involving the separation of powers and the authority of the executive branch.
The Supreme Court's decision in Marbury v. Madison was based on the idea that the Constitution is a written document, and that the Constitution is the supreme law of the land. The Court held that the Constitution is the supreme law of the land, and that the President has the power to make laws that are consistent with the Constitution. This decision also established the principle of the separation of powers, which means that the President and Congress have different branches of government, and that each branch has its own powers and responsibilities.
The significance of Marbury v. Madison lies in its impact on American politics and governance. It set the precedent for the Supreme Court to recognize the authority of the executive branch to make laws, and it established the principle that the Constitution is the supreme law of the land. This decision has been a turning point in American politics, as it has defined the role of the executive branch and the role of the Supreme Court in interpreting the Constitution.
Today, the Supreme Court continues to interpret the Constitution and recognize the authority of the executive branch to make laws. The Court has also established the principle of the separation of powers, which has been a cornerstone of American
Wrong: the decision is attributed to the President's power to make laws. It runs into the 320-token limit in the middle of a sentence.
User: In two sentences, what does a writ of certiorari do?
A writ of certiorari is a legal process that allows a higher court to review the decision of a lower court. It is used to review the decision of a lower court that has decided a case, and to determine the correctness of the decision.
Correct, and the requested length; the second sentence adds little.
User: Summarize Nietzsche's critique of morality in three sentences.
Nietzsche's critique of morality is three sentences: (1) morality is a matter of individual choice, and it is impossible to be truly good or bad without one's actions; (2) morality is a matter of convention, and it is impossible to be truly good or bad without one's actions; and (3) morality is a matter of power, and it is impossible to be truly good or bad without one's actions.
One sentence dressed as three, and the content is a template with one word changed.
User: A train leaves Bismarck at 9:00 am going 60 mph. A second train leaves at 10:30 am on the same track going 80 mph. At what time does the second train catch the first? Show your work.
To find the time when the second train catches the first, we need to calculate the relative speed between the two trains and then compare it with the speed of the first train.
The relative speed between the two trains is the sum of their individual speeds: 60 mph (first train) + 80 mph (second train) = 140 mph.
Now, we can use this relative speed and the time it takes for the first train to catch the first to find the time when the second train catches the first.
The first train catches the first train in 140 mph / 60 mph = 2.2333333333… (the 3 repeats to the 320-token limit)
Wrong, and then a runaway decimal: the greedy loop the diffusion base also falls into.
User: Write a Python function fibonacci(n) that returns the nth Fibonacci number, with a base case and a docstring. Then show the first ten values.
def fibonacci(n): """ Returns the nth Fibonacci number. Args: n (int): The index of the Fibonacci number to return. Returns: int: The nth Fibonacci number. """ if n <= 0: return 0 elif n == 1: return 1 else: return fibonacci(n-1) + fibonacci(n-2)print(fibonacci(10)) # Output: 55This implementation uses dynamic programming to calculate the nth Fibonacci number. It includes a base case of 0 and 1, as well as a recursive call to calculate the nth Fibonacci number. The docstring explains the function's purpose and parameters.
The function is correct and fibonacci(10) is 55. It is plain recursion, not dynamic programming, and the first ten values are not shown.
User: List three differences between a trial court and an appellate court. Use exactly three bullet points and no more than 15 words each.
- Trial courts hear cases in person, while appellate courts review decisions made by lower courts.
- Trial courts are responsible for conducting trials, while appellate courts review decisions made by lower courts.
- Trial courts have limited jurisdiction, while appellate courts have unlimited jurisdiction.
Three bullets; the second is 16 words.
User: Rewrite this sentence to be more formal: 'the judge tossed the case cuz the cops didn't have a warrant.'
The judge dismissed the case due to the lack of a warrant.
Good.
The four runs at a glance. The same seven prompts, greedy and at temperature 0.6, under each block layout. The fourth run (dLLM's layout at temperature 0.6) is not reproduced above.
| Default, greedy | Default, T 0.6 | grid="prompt", greedy |
grid="prompt", T 0.6 |
|
|---|---|---|---|---|
| Marbury: holding stated correctly | yes | yes | no | no |
| Certiorari: two sentences | yes | no (three) | yes | yes |
| Nietzsche: three sentences | yes | yes | no (one) | yes |
| Train: 3:00 pm | no | no | no | no |
| Fibonacci: function correct | no | no | yes | no |
| Fibonacci: first ten values shown | no | no | no | no |
| Bullets: exactly three | yes | yes | yes | yes |
| Bullets: 15 words or fewer | 3 of 3 | 3 of 3 | 2 of 3 | 1 of 3 |
| Rewrite: a clean sentence | no | yes | yes | yes |
How to read it. Next to Chochmah-1B-Instruct's samples of the same prompts, this model states the holding of Marbury where that sample inverted it, and returns the three bullets that sample returned as four numbered items. That sample wrote a correct Fibonacci function, twice, and reached 3:00 pm on the train problem (through incorrect arithmetic); under its defaults this model does neither. Neither model showed the first ten Fibonacci values. The two block layouts trade prompts rather than one dominating, which is what a difference of under 1% in likelihood looks like at the level of single answers. Seven prompts decide nothing; the benchmarks will.
Known Issues and Limitations
- The knowledge is the base model's. Neither the diffusion conversion nor this fine-tune added facts; fine-tuning teaches the format of an answer. The Marbury answer is right under the default decoding and wrong under the other block layout, where at temperature 0.6 the model also invented the parties ("The case involved James Madison Marbury, who was a justice of the Supreme Court, and his wife, Jane Washington"). Expect organized, confident, wrong accounts of specific cases, texts and events. It must not be used as a source of legal, medical, financial or factual answers.
- Citations are generated, not retrieved. The sampled Marbury answer cites "1 Cranch .13 (1803)"; the case is at 1 Cranch 137. Treat any citation it produces as a lookup key, never as support.
- Math is unreliable. All four runs of the train problem are wrong, with four different answers. Show-your-work output should be checked line by line.
- Code looks right before it is right. Fences, indentation and docstrings are consistent; the logic was correct in one run of four.
- Instruction following is partial and unmeasured. In the samples, bullet and word limits were met under the default layout and sentence counts in six runs of eight; the second half of a two-part request ("then show the first ten values") was never done. IFEval will give the rate.
- Repetition. Long answers restate themselves, and greedy decoding can run away into a repeated token, as the base model does. There is no repetition penalty and no top-p; temperature is the only sampling control.
- Single answers depend on the block layout. The same weights and prompt give different answers under the two
gridsettings. On average the difference is under 1% in likelihood; on a single prompt it can be the difference between a right answer and a wrong one, and it goes both ways (Marbury one way, Fibonacci the other). - One token per pass. More than one per pass broke the diffusion base's output and has not been re-tested here. There is no speed advantage over the autoregressive model.
- No safety tuning. SmolTalk includes ordinary assistant behavior but no dedicated refusal or safety training. The model will attempt most requests. It has no content filtering of its own.
- English only. Fine-tuned on conversations of up to 2,048 tokens; behaviour beyond that length is untested.
- Custom code. It runs through
transformerswithtrust_remote_code=Trueand nowhere else: no vLLM, no GGUF, nogenerate().
Technical Specifications
| Specification | Value |
|---|---|
| Model Family | TevunahAi Chochmah |
| Variant | 1B-Diffusion-Instruct (v1.0, SFT) |
| Base | Chochmah-1B-Diffusion, itself from Chochmah-1B final checkpoint ckpt_42914 |
| Total Parameters | 1,183,031,296 (the base's 1,182,900,224 plus 64 embedding rows) |
| Architecture Class | ChochmahDiffusionLM, in modeling_chochmah_diffusion.py in this repository |
| Layers / Hidden / Intermediate | 24 / 2,048 / 5,632 |
| Attention | GQA, 16 query heads, 4 KV heads, head dim 128, QK-norm; no built-in causal mask |
| Positions | RoPE, theta 50,000 |
| Context Length | 4,096 (fine-tuned at up to 2,048) |
| Vocab Size | 49,153 tokens (SmolLM2's 49,152 plus the mask token); 49,216 embedding rows |
| Chat Template | ChatML; start-of-turn token id 1, end-of-turn token id 2, which is also eos |
| Objective | BD3-LM block diffusion, block size 8 |
| SFT Data | SmolTalk all, 2 epochs, 1.72B tokens, 8,122 steps |
| SFT Compute | about 149 h on one RTX 5000 Ada |
| Final Held-Out Loss | 1.268 nats per token (SmolTalk test subset, step 8,000) |
| Decoding Defaults | Greedy, one token per pass, blocks counted from the first token (grid="sequence") |
Roadmap
- Benchmarks — IFEval and GSM8K through this model's sampler, next to Chochmah-1B-Instruct's numbers, and the base model's scorecard through Chochmah-1B-Diffusion
License
Weights and model code: Apache-2.0. Fine-tuning data: SmolTalk, Apache-2.0. The base model's pretraining data licenses are listed on the Chochmah-1B card. Users are responsible for their own compliance with the licenses of the underlying datasets.
Citation
@misc{chochmah1b_diffusion_instruct_2026,
title = {Chochmah-1B-Diffusion-Instruct: instruction tuning a from-scratch block-diffusion language model on one GPU},
author = {TevunahAi},
year = {2026},
url = {https://huggingface.co/TevunahAi/Chochmah-1B-Diffusion-Instruct},
note = {Block-diffusion (BD3-LM) SFT of Chochmah-1B-Diffusion on SmolTalk; 1.18B parameters, block size 8, ChatML}
}
Acknowledgments
- Marianne Arriola and co-authors for block discrete diffusion (BD3-LM), the objective this model was trained with
- The dLLM authors for an open trainer and the autoregressive-to-diffusion recipe this work follows
- Hugging Face / SmolLM team for SmolTalk, the SmolLM2 recipe and the tokenizer
- Qwen team for the Qwen3 block design and its transformers implementation
- PyTorch team for flex attention, which made block-sparse attention over two copies of every conversation practical on one GPU
Pretrained, converted and tuned by TevunahAi
AI Model Quantization and On-Premises AI Infrastructure
From-scratch models, hybrid-architecture quantization (Mamba, MoE, SSM), and enterprise hardware bring-up
https://huggingface.co/TevunahAi https://tevunah.ai https://chochmah.ai
- Downloads last month
- 35