Instructions to use AnM123/jev-27b-nf4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AnM123/jev-27b-nf4 with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
JEV-27B, NF4 copy
A bitsandbytes 4-bit (NF4) serialization of the backbone of
autotrust/JEV-27B at revision
ff9b67b9bcb2dc5a8499d540e0c4cd10b254f3a2, made so that the decision service downloads about
18 GB instead of about 55 GB of bf16 shards. Nothing was retrained or merged.
Provenance
- Source:
autotrust/JEV-27B@ff9b67b9bcb2dc5a8499d540e0c4cd10b254f3a2(Apache-2.0, seeORIGINAL_MODEL_CARD.md). - Quantization, identical to the load path of the decision service:
BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4", bnb_4bit_compute_dtype=torch.bfloat16, bnb_4bit_use_double_quant=True),AutoModelForCausalLM.from_pretrained(..., dtype=torch.bfloat16, device_map={"": 0}, low_cpu_mem_usage=True), thensave_pretrained(out, max_shard_size="4GB", safe_serialization=True). - Versions: accelerate==1.15.0 bitsandbytes==0.50.2 huggingface_hub==1.33.0 peft==0.21.2 safetensors==0.8.0 transformers==5.16.0 torch 2.8.0+cu128 (pytorch/pytorch:2.8.0-cuda12.8-cudnn9-runtime).
- Hardware: 1x NVIDIA GeForce RTX 4090 24 GB, 2026-10-12.
- Copied byte for byte from the source revision:
adapter/(LoRA, not merged),head.safetensors,calibration.json,judge_config.json,chat_template.jinja,tokenizer.json,tokenizer_config.json; the source model card asORIGINAL_MODEL_CARD.md. Not copied:adapter_vllm/,reports/, images,serve_decide.py.
Use
Load the backbone as is (the quantization_config in config.json is applied; do not pass another one),
then the adapter and the head from this repository:
base = AutoModelForCausalLM.from_pretrained("AnM123/jev-27b-nf4", revision=REV, device_map={"": 0}, dtype=torch.bfloat16)
model = PeftModel.from_pretrained(base, "AnM123/jev-27b-nf4", subfolder="adapter", revision=REV)
Check against the source
On the same GPU, 381 decision requests (incl. the model-card refund anchor) through the source loaded
with on-the-fly NF4 and through this copy: the copy was published at revision 696c3bf65b60a49b274875ed5b3f31815d91813a, its cache and the source cache were deleted, and a fresh service process loaded it from the Hub (no second quantization); all 381 calibrated distributions were bit-identical to the source path (max |ฮp| = 0.0, 0 changed choices; anchor P(true) = 0.9811 both). Later revisions of this repository change only this README; the weight files keep the same hashes.
License
Apache-2.0, as the source. Copyright of the weights remains with the authors of autotrust/JEV-27B; this repository only changes the storage format of the backbone.
- Downloads last month
- -