Files
moral-maps/pyproject.toml
T
wassnameandClaudypoo 0bef8b0d3d instrument: fail-fast asserts from external review (#57)
deepseek-v4-pro review of the admin->tinymfv port (algebra proven correct, diff
8.25e-08 = float noise). Closes its flagged fail-fast gaps:
- per_item_categorical asserts uniform frame count per item (else the per-item
  average would silently reweight a factor)
- reduce_ordinal asserts dimension is not None (no phantom-factor pooling)
- administer asserts every ordinal item carries meta['task'] (else build_prompt
  would silently drop the response-scale legend and the profile would be junk)
Also commits maps.py + viz deps from the stage-3 port.

Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
2026-06-23 09:41:36 +08:00

39 lines
873 B
TOML

[project]
name = "tiny-mfv"
version = "0.1.0"
description = "Tiny moral-foundations vignettes eval (Clifford 2015 classic + paraphrase configs) for steering checkpoints."
requires-python = ">=3.11"
dependencies = [
"transformers>=5.7",
"torch",
"accelerate",
"pandas",
"loguru",
"python-dotenv",
"tyro",
"openai>=1.40",
"httpx",
"tqdm",
"tabulate",
"datasets",
"numpy",
"matplotlib>=3.8", # tinymfv.maps: culture-map + range viz
"textalloc>=1.2.3", # non-overlapping label placement on the maps
]
[dependency-groups]
dev = [
"openrouter-wrapper",
"scipy>=1.17.1",
]
[tool.uv.sources]
openrouter-wrapper = { git = "https://github.com/wassname/openrouter_wrapper" }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/tinymfv"]