Skip to content

hylo.policies.simplememvla.runtime

Package: hylo-policy-simplememvla · Core contracts

runtime

Shared frozen upstream model, with separate Hylo memory sessions per episode.

SimpleMemVLARuntime

SimpleMemVLARuntime(checkpoint: str, *, compute_dtype='bfloat16', attention='sdpa', num_denoising_steps: int = 10, temperature: float = 1.0, max_subtask_tokens: int = 64)

config instance-attribute

config = self.model.config

processor instance-attribute

processor = AutoProcessor.from_pretrained(checkpoint, local_files_only=True, trust_remote_code=False, padding_side='right', model_max_length=8192)

batched instance-attribute

batched = BatchedEvalPolicy(self.model, self.processor, self.unnormalize, self.normalize, num_denoising_steps=num_denoising_steps, eval_temperature=temperature, max_subtask_tokens=max_subtask_tokens)

device instance-attribute

device = next(self.model.parameters()).device

torch instance-attribute

torch = torch

new_session

new_session()

infer_batch

infer_batch(sessions, instructions, states, *, seed: int | None = None)

Return one (action array, subtask) per session; preserve input row order.

seed=None retains native batch RNG semantics. An explicit seed isolates one request's noise using fork_rng. Different batch compositions need not draw identical action noise.