This delivery tracks the official PKU-Alignment/beaver-7b-v1.0-cost
checkpoint and the score-model implementation from PKU-Alignment Safe-RLHF:
c1bd343d2ddc2cb810bd736563c7ad0bf38f6b28e8cca16665ef2340ac92c6514f05519310251581LlamaForScore, 6,607,351,809 parameterssafetensors shards, exact sizes and LFS hashes recorded in model-lock.jsonThe official repository imports training-only dependencies at package import
time. This adaptation vendors the official normalizer, score-model base and
Llama score implementation, then loads only those files so the inference path
does not require wandb or deepspeed. The cost model was loaded from the actual
checkpoint and forwarded on npu:0 with a [1,16] smoke input. The output was
finite with score shape [1,16,1] and end-score shape [1,1].
The verified environment uses Transformers 4.46.3, tokenizers 0.20.3 and huggingface-hub 0.26.2. This is the requested NPU smoke gate only; it does not claim cost calibration, task quality or CPU/NPU precision equivalence.
Run with the checkpoint outside this repository:
PYTHONPATH=/path/to/transformers-4.46.3 python inference.py \\
--model-path /tmp/model-agent/beaver-7b-v1-cost \\
--device npu --output-dir validation

