SupersonicLabs/Julia-2
- License
- apache-2.0
- Size
- not mirrored yet
No official torrent yet — requesting it tells the flock what to host next. You cannot seed a catalog-only page.
Cataloged from SupersonicLabs/Julia-2
All models by SupersonicLabs →No official torrent yet — requesting it tells the flock what to host next. You cannot seed a catalog-only page.
Cataloged from SupersonicLabs/Julia-2
All models by SupersonicLabs →[Image blocked: Supersonic Labs logo]
From context to decisions. Read once, ask everything, decide in milliseconds.
[Image blocked: Julia 2 — monochrome geometric artwork]
Julia 2 is a decision model. You give it a situation — a support ticket, a transaction, an agent trace, a JSON record, a conversation that is still going on — and the decisions you need to take about it, each with the options you allow. It returns a calibrated probability for every option of every question, and it does it in a single pass over the situation: the state is read once, and every question is a short branch on top of it. Nothing is generated, so there is nothing to parse and no answer outside the options you gave.
Julia 2 is the second generation of the Julia family, and it is built for decisions that the first generation could not take:
It keeps the request and answer format of Julia 1 and Julia 1.5, so an application written for them works unchanged; what changed underneath is in From the first generation to the second.
1.06B parameters · text, JSON, images and speech · live calls · 32k tokens tested · English, Portuguese and many more languages · bf16, int8 and int4 · Julia 1 / 1.5 API
[Image blocked: Julia 2 vs Julia 1.5 vs Julia 1]
[Image blocked: How Julia 2 decides]
Most software decisions are small, frequent and structured: which team gets this ticket, is this transaction suspicious, does this answer follow the policy, how urgent is this message, which tool should the agent call next, is the caller on this line being pressured into a transfer. A chat model can answer them, but it answers by writing, which is slow, costs per token, and leaves you parsing free text and handling answers you did not allow. Julia 2 is built for exactly this kind of decision. It reads the situation, considers only the options you defined, and returns numbers your code can branch on, in tens of milliseconds.
It is a fast, single-pass model — the "System 1" of an application. Use it where a decision has to be taken many times, quickly and consistently: routing and triage, moderation and safety checks, policy and eligibility checks, rubric scoring, intent and category detection with large label sets, picking the next step or tool in an agent, and watching a conversation or an event stream as it happens. It is not a writer and not a calculator: when a decision needs a long computation or knowledge that is not in the state, do that step upstream and give Julia 2 the result.
A decision model rewards a different habit from a chat model. You do not write instructions on how to answer; you describe the situation and the decision, and the model does the rest. The sections below go through the choices that make the biggest difference, each with an example.
A question should name one decision with a closed set of outcomes. Writing it like a prompt adds nothing, because the model can only answer with your options anyway — and a vague question gives vague probabilities.
If you need several decisions, ask several questions (see 4). If you find yourself writing "and also…", it is probably a second question.
Julia 2 reads option keys and descriptions as language: it compares the situation with what each option says. It
does not memorise label ids — renaming billing to team_7 changes nothing — so the description is where you
decide what the option covers. Give each one a short definition, and when two options are close, say how they
differ; that is where most mistakes between neighbours come from.
The same applies to large label sets: with 150 or 255 intents, one line per intent is enough, and you can add a new intent tomorrow without retraining.
When the right answer depends on a policy, a threshold or an attribute, write it into the state. Facts in the state take precedence over what the model knows in general, which is how you keep decisions current without retraining and how you make them auditable: the rule that was applied is in the request.
Julia 2 chooses; it does not calculate. If a decision needs a sum, a date difference or a lookup, do it in your code
and put the result in the state ("days_since_purchase": 41, not two dates to subtract).
All questions of a request share one reading of the state: the state is processed once and every question is a short branch on top of it. Asking five things at once costs little more than asking one, and it keeps the answers consistent with each other because they are based on the same reading.
Use choice when exactly one option applies (a team, an intent, a next action). Use noul for a yes/no
decision; you get P(true) directly. Use score when the options are an ordered scale and the distance between
levels matters (priority, severity, quality on a rubric); you get the most likely level and the expected level,
which is often the better number to sort by.
A common mistake is to turn a choice into one yes/no per option ("is it billing?", "is it tech?", …). Those questions
are answered independently, so more than one can come out "yes". If exactly one answer applies, ask a single
choice; if several can apply at once, separate yes/no questions are the right tool.
The probabilities are calibrated on held-out decision data (expected calibration error around 0.03), so 0.9 means roughly nine in ten. That makes it natural to act automatically only when the model is sure and to route the rest:
Pick the two thresholds on a few hundred of your own requests with known outcomes, not on intuition: calibration is good on average, but it is weaker where the model lacks knowledge.
Julia 2 reads states of tens of thousands of tokens, but accuracy still decreases slowly with length (63% at 2k tokens, 53% at 32k on decisions that hinge on one buried fact). A focused state — the ticket and the relevant account fields, not the whole account history — is faster and more accurate. JSON is fine as it is; key order and formatting do not matter.
When the situation is still unfolding — a chat, a call, an event stream — the same questions can be re-asked as the state grows, without reading the earlier part again: open a live session and push each chunk as it arrives (see Live calls and audio).
Python 3.10+ and PyTorch. The runtime is small and has its own forward pass: it needs torch, safetensors,
tokenizers, numpy and pillow (plus soundfile and scipy for audio files), not transformers. A CUDA GPU is
recommended; the CPU path works for small loads.
rt.predict_batch([...]) scores many requests together; rt.decide(state, instructions, criteria) is the one-question
shortcut.
Answers carry truncated: true when the state did not fit the configured maximum length.
A state can include images. They are read by the model's own vision encoder in the same pass as the text, placed before the text of the state, so every question of the request sees them — there is no captioning or OCR step in between. Use them when the decision depends on what is visible: whether a product photo shows damage, which document a scan is, whether a screenshot shows an error, how many items are on a shelf, whether a meme or an image is safe to publish.
Over HTTP, or anywhere the request is plain JSON, the state can be a list of parts in the System One format: text parts
are strings or {"type": "text", "text": ...}, images are {"type": "image_url", "image_url": {"url": "data:image/png;base64,..."}}.
A few habits make image decisions more reliable. Refer to images by their order when there are several ("the first
image", "the second image"), and keep the question about what can actually be seen. Put the context you know in the
text of the state — the part number, the expected document type, the store and aisle — rather than hoping the model
infers it from pixels. Count questions work best as choice or score with explicit bins ("0", "1", "2", "3 or
more"). Images are downscaled to at most 1.6 megapixels; for small print, crop the region that matters instead of
sending a large page.
The first generation (Julia 1 and Julia 1.5) was a 144M-parameter encoder that read the question, the options and the state as one sequence of at most 1,024 tokens, with a small head comparing the options. It was fast and small, and Julia 1.5 made it far more reliable, but the design set hard limits: little general knowledge to draw on, at most 20 options, a short context, one full pass for every question, and text only.
Julia 2 keeps the contract and replaces the network. The state is no longer re-read for every question: it is read once, and each question is a short branch on top of it, so asking many things about the same situation costs little more than asking one. The trunk is a hybrid — 18 linear-attention layers that carry a fixed-size recurrent state and 6 full-attention layers — which reads long states cheaply and can extend a state that is still arriving. Because the trunk is a language model, it brings general knowledge and an understanding of what option names and descriptions mean: unseen label sets, renamed keys and new languages work without retraining, and the option list can grow to 255 entries, or more in two rounds. Images and speech enter the same pass through the model's own vision and audio encoders, so the decision skills learned on text are reused on what is seen and heard.
The reliability work of Julia 1.5 was carried over as training objectives instead of patches. Option order, negation, the agreement between a choice and its per-option yes/no views, irrelevant options and the bias on an empty state are measured as formal laws during training, and the checkpoint is selected on held-out tasks rather than on the benchmark it is reported on.
What each model can understand and do, side by side:
Speech is encoded into the same token space the model uses for text, so every decision skill learned on text is reused on what is said, with no transcription step and without losing what text does not carry — tone, hesitation, pressure in a voice. A recording can be part of any state, and a live call is a normal request whose input keeps arriving: you open it with the fixed context and the fixed questions, push audio (or text) as it comes, and read updated answers whenever you want. Earlier audio is never processed again, so asking costs the same at minute one and at minute ten.
The alert follows the question keyed alert with two thresholds (on above 0.6 for two asks, off below 0.4 for three),
so it fires once the evidence holds and does not flicker. Re-ask after every turn or every few seconds; a GPU serves
dozens of concurrent live calls.
Internal held-out evaluations of this checkpoint (bf16).
Text and JSON decisions
Speech and live calls
The repository holds the same checkpoint in three precisions. The tokenizer, configuration and runtime are shared, and
each variant passed an answer-agreement check against bf16 before it was published (models.json lists the numbers).
Load the model once per process and keep it alive. All questions of a request share one reading of the state, and requests that arrive together are batched by length. On one NVIDIA RTX PRO 6000 (Blackwell), bf16, with a 183-token state:
On a 4-thread CPU (bf16) one question takes about 0.8 s and six questions on the same state about 2 s; the int8 and int4 variants are faster where the CPU has int8 instructions.
There is no sampling: the same request on the same hardware and software gives the same probabilities. When requests are batched together, padding changes the shape of the bf16 computation and probabilities can move in the last digits; score requests one by one when that matters.
Julia 2 chooses; it does not compute. Multi-step arithmetic and long calculations are unreliable, and so is
exam-level knowledge that is not in the state (national entrance exams, professional exams) — compute or retrieve those
upstream. Long states work, but accuracy decays with length, from 63% at 2k tokens to 53% at 32k on needle decisions.
The per-option yes/no view is not yet perfectly coherent with the choice view: asked separately about each option, the
model can say yes to more than one plausible option, so use choice when exactly one answer applies. Probabilities are
well calibrated on average but over-confident where knowledge is missing; check them on your own data before using
them as hard thresholds. Images are read without decision training on images yet, so check image decisions on
your own data. Speech decisions are a few points below the same state written as text, weaker on very fast speech and
on Portuguese recordings than on English, and the live-call questions still raise too many alerts on legitimate calls
(32%): treat the alert as a prompt to look, not as a verdict.
The model artifacts are licensed under Apache 2.0.
Supersonic Labs
# weak: a request to "analyse", with no decision in it{"type": "choice", "instructions": "Please read the ticket carefully and tell us what you think.", "criteria": {"billing": "billing", "tech": "tech"}}
# better: the decision your code will act on{"type": "choice", "instructions": "Which team should handle this ticket?", "criteria": {"billing": "Payments: charges, refunds, invoices", "tech": "Technical support: login, app errors, connectivity"}}"criteria": { "refund": "The customer wants money back for a charge that already happened", "chargeback": "The customer says the charge was not made by them (possible fraud)", "cancel": "The customer wants to stop an order or a subscription before it is charged"}state = { "order": {"id": "A-963", "days_since_purchase": 41, "charges": [{"amount_usd": 75, "status": "captured"}]}, "refund_policy": "Duplicate captured charges are refundable within 30 days of purchase. " "Pending or voided charges are never refunded."}questions = {"eligible": {"type": "noul", "instructions": "Is the customer eligible for a refund under the policy?"}}questions = { "team": {"type": "choice", "instructions": "Which team should handle this ticket?", "criteria": teams}, "urgent": {"type": "noul", "instructions": "Does this need an answer today?"}, "angry": {"type": "noul", "instructions": "Is the customer angry?"}, "priority": {"type": "score", "instructions": "Support priority", "criteria": ["low", "medium", "high"]}, "refund": {"type": "noul", "instructions": "Is the customer asking for money back?"}}p = result["answers"]["refund"]["noul"]if p > 0.95: approve() # automate the clear caseselif p < 0.05: decline()else: send_to_review() # the uncertain middle goes to a personpip install huggingface_hubpython -c "from huggingface_hub import snapshot_download; snapshot_download('SupersonicLabs/Julia-2', local_dir='Julia-2')"pip install -e ./Julia-2/runtime # optional fast kernels: pip install -e "./Julia-2/runtime[fast]"from julia2 import Runtime
rt = Runtime('Julia-2') # load once, keep it alive (CUDA if available, else CPU) # Runtime('Julia-2', precision='int8' | 'int4', device='cpu') for smaller hardware
result = rt.predict_questions( state={'ticket': 'I was charged twice for order #4821 and the second charge is still pending.', 'customer_tier': 'gold'}, questions={ 'intent': { 'type': 'choice', 'instructions': 'What does the customer want?', 'criteria': {'refund': 'Get money back', 'cancel': 'Cancel the order', 'track': 'Track a delivery'}, }, 'urgent': {'type': 'noul', 'instructions': 'Should this ticket be escalated today?'}, 'priority': {'type': 'score', 'instructions': 'Support priority', 'criteria': ['low', 'medium', 'high']}, },)print(result['answers']['intent']['choice'], result['answers']['intent']['probabilities'])from PIL import Image
result = rt.predict_questions( state='Inspection photo from line 3. Part number 88-1204.', images=[Image.open('part.jpg')], # PIL images, file paths, bytes, base64 strings or data URLs questions={ 'damaged': {'type': 'noul', 'instructions': 'Is there visible damage on the part?'}, 'defect': {'type': 'choice', 'instructions': 'Which defect is visible?', 'criteria': {'none': 'No defect', 'scratch': 'Surface scratch', 'dent': 'Dent or deformation', 'crack': 'Crack or break', 'stain': 'Stain or discoloration'}}, },)# a recording inside a normal requestrt.predict_questions([{"type": "input_audio", "input_audio": "call.flac"}], questions) # path, bytes, data URL or (array, rate)
# a live callquestions = { "scam": {"type": "noul", "instructions": "Is the caller trying to scam the customer?"}, "pressure": {"type": "score", "instructions": "How much pressure is the caller applying?", "criteria": ["none", "some", "strong"]}, "alert": {"type": "noul", "instructions": "Should we warn the customer now?"},}live = rt.open_live({"customer": "Ana Souza", "bank": "Banco Meridional"}, questions, lang="pt")live.turn("caller")live.push(pcm_chunk) # 16 kHz float32 audio, any chunk size (80 ms is fine)answers, alert = live.ask() # alert: the "alert" question with hysteresis, so it does not flickerlive.push_text("No, I never gave anyone my PIN.") # text can be mixed infrom huggingface_hub import snapshot_downloadsnapshot_download('SupersonicLabs/Julia-2', local_dir='Julia-2', allow_patterns=['int8/*', 'tokenizer/*', 'trunk/*', 'runtime/**', '*.json', 'LICENSE', 'NOTICE*'])rt = Runtime('Julia-2', precision='int8')