File size: 3,891 Bytes
4707307
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "picmem-dev"
version = "0.2.0"
description = "Bounded contract memory for long-horizon robot policies"
readme = "README.md"
requires-python = ">=3.10,<3.14"
license = { file = "LICENSE" }
dependencies = [
    "cryptography==45.0.7",
    "numpy>=1.26",
]

[project.optional-dependencies]
hdf5 = ["h5py>=3.13"]
lerobot = ["polars>=1.30"]
semantic-annotation = [
    "h5py>=3.13",
    "openai>=2,<3",
    "Pillow>=10.4",
    "polars>=1.30",
]
model = [
    "flax==0.10.2",
    "jax==0.5.3",
    "jaxtyping==0.2.36",
]
counterfactual = ["jax==0.5.3"]
samplers = ["torch>=2.8,<2.9"]
training = [
    "jax==0.5.3",
    "torch>=2.8,<2.9",
]
dev = [
    "flax==0.10.2",
    "h5py>=3.13",
    "jax==0.5.3",
    "jaxtyping==0.2.36",
    "omegaconf>=2.3",
    "polars>=1.30",
    "pytest>=8.3",
    "ruff>=0.8",
    "torch>=2.8,<2.9",
]

[project.scripts]
picmem-audit = "picmem.cli.audit:main"
picmem-crosswalk-receipt = "picmem.cli.crosswalk_receipt:main"
picmem-dense-caption = "picmem.cli.dense_caption_v7:main"
picmem-dense-caption-all = "picmem.cli.dense_caption_v7_all:main"
picmem-semantic-annotate = "picmem.cli.semantic_annotate:main"
picmem-semantic-calibration = "picmem.cli.semantic_calibration:main"
picmem-stage1-archive = "picmem.cli.stage1_archive:main"
picmem-stage1-refine = "picmem.cli.stage1_refine:main"
picmem-stage2-task-semantics = "picmem.cli.stage2_task_semantics_v7:main"
picmem-stage3-temporal-mapping = "picmem.cli.stage3_temporal_mapping:main"
picmem-stage4-semantic-memory = "picmem.cli.stage4_semantic_memory:main"
picmem-vllm-server = "picmem.cli.vllm_server:main"
picmem-admit = "picmem.ops.admission:main"
picmem-amlt = "picmem.ops.amlt:main"
picmem-cadence = "picmem.ops.cadence:main"
picmem-checkpoint = "picmem.ops.checkpoint:main"
picmem-formal-runtime = "picmem.ops.formal_runtime:main"
picmem-ledger = "picmem.ops.scheduler:main"
picmem-registry = "picmem.ops.registry:main"
picmem-runtime-profile = "picmem.ops.runtime_profiles:main"
picmem-run084-order = "picmem.sampling.run084_sample_order:main"
picmem-sku-smoke-evidence = "picmem.ops.sku_smoke_evidence:main"
picmem-submit = "picmem.ops.submit:main"
picmem-supervisor = "picmem.ops.supervisor:main"
picmem-uv-cache = "picmem.ops.uv_cache:main"
picmem-watchdog = "picmem.ops.watchdog:main"

[tool.hatch.build.targets.wheel]
packages = ["src/picmem"]

[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src", "."]

[tool.ruff]
line-length = 120
target-version = "py310"
# robomme/ is the vendored upstream RoboMME workspace, carried here so an
# experiment needs no second checkout.  It ships its own ruff configuration and
# its own style history; linting it under PIC-Mem's rules would report ~1.5k
# pre-existing upstream findings that nobody here is entitled to "fix".
extend-exclude = ["robomme"]

[tool.ruff.lint]
select = ["B", "E", "F", "I", "RUF", "SIM", "UP"]
ignore = ["F722"]

# These two files are hash-pinned mirrors of the upstream RoboMME host.  Keep
# its existing style debt isolated here instead of reformatting the reviewed
# overlay preimages; all PIC-Mem additions and the rest of the repository stay
# under the normal rule set.
[tool.ruff.lint.per-file-ignores]
"integrations/robomme/src/mme_vla_suite/shared/mem_buffer.py" = [
    "E401",
    "E501",
    "F403",
    "F405",
    "F541",
    "I001",
    "SIM108",
    "UP035",
]
"integrations/robomme/src/mme_vla_suite/training/dataset.py" = [
    "B905",
    "E501",
    "RUF013",
    "RUF046",
    "SIM115",
]

# The reviewed AzureML image is CUDA 12.6, so torch must come from the matching
# PyTorch index instead of the PyPI default, which publishes a cu128 build.
[[tool.uv.index]]
name = "pytorch-cu126"
url = "https://download.pytorch.org/whl/cu126"
explicit = true

[tool.uv.sources]
torch = { index = "pytorch-cu126" }