import json, torchfrom pathlib import Pathfrom huggingface_hub import snapshot_downloadfrom transformers import AutoTokenizerfrom asrs_lora_classifier.model import load_classifier # pip install -e . from the GitHub repo path = Path(snapshot_download("Alvser/asrs-lora-qwen3-0.6b"))labels = json.loads((path / "labels.json").read_text())thresholds = torch.tensor([json.loads((path / "thresholds.json").read_text())[l] for l in labels]) tok = AutoTokenizer.from_pretrained("Qwen/Qwen3-0.6B-Base")clf = load_classifier("Qwen/Qwen3-0.6B-Base", path, len(labels), "cuda", dtype=torch.float16) batch = tok(["During climb ATC issued a clearance to FL240 ..."], truncation=True, max_length=512, padding=True, return_tensors="pt").to("cuda")with torch.no_grad(): probs = torch.sigmoid(clf(batch["input_ids"], batch["attention_mask"])).cpu()[0]print([l for l, p, t in zip(labels, probs, thresholds) if p >= t])