Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeSafe classification and bounded-reasoning testing

Reproducible comparisons of TypeSafe typed classifications and SOL structured classifications. The benchmark covers binary, multiclass, ordinal, ambiguous, short-context, long-context, and adversarial cases. A separate DiffusionGemma suite tests temporal, policy, relational, constraint, evidence, causal, and counterfactual reasoning with typed answers.

The benchmark requires these environment variables:

  • TYPESAFE_API_KEY
  • TYPESAFE_API_URL
  • TYPESAFE_MODEL
  • INFERENCE_API_KEY or NVIDIA_API_KEY
  • SOL_API_URL
  • SOL_MODEL
  • DIFFUSIONGEMMA_URL for the DiffusionGemma comparison

Run:

python3 compare_typesafe_sol.py
python3 compare_jev_small_router.py
python3 compare_typesafe_needle.py
python3 compare_typesafe_diffusiongemma.py
python3 compare_typesafe_diffusiongemma_reasoning.py

Set COMPACT_RESULTS=1 to print aggregate and adversarial summaries without the full per-case rows.

Set RESULT_PATH when running the DiffusionGemma comparison to checkpoint each completed case and resume an interrupted run.

Shareable DiffusionGemma skill

The DiffusionGemma container guide includes the GHCR image, launch command, API example, and build recipe for the decision service and explorer.

The L40S FP8 deployment guide covers pulling the container, launching the service, and using the UI/API.

Install the reusable structured-decision skill with:

npx skills add pst2154/Typesafe_Testing --skill diffusiongemma-structured

The skill documents Choice, Noul, and Score design and includes a standard-library client that translates keyed TypeSafe-style questions to the DiffusionGemma wire format. Set DIFFUSIONGEMMA_URL at runtime; no service location or credential is embedded in the skill.

Routing comparisons:

The repository contains no credentials, endpoint values, internal paths, or raw production data.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages