"""No base weights, network, CUDA or neural inference used by these tests.""" import importlib.util import json from pathlib import Path import struct import sys import unittest ROOT = Path(__file__).resolve().parents[1] sys.path.insert(0, str(ROOT)) sys.path.insert(0, str(ROOT / 'training')) import infer from adapters import attach, LoRALinear from objectives import group_advantages, learning_rate, policy_sum import torch from torch import nn class ReleaseTests(unittest.TestCase): @classmethod def setUpClass(cls): cls.cfg = json.loads((ROOT / 'adapter_config.json').read_text()) with (ROOT / 'adapter.safetensors').open('rb') as stream: size = struct.unpack('