Cedar RAISE Qwen3.5-9B

This repository contains the final RAISE reinforcement-learning LoRA adapter for Cedar access-control policy generation.

  • Base model: StephenChou/cedar-qwen9b-sft-v2
  • Training run: grpo_v2_9b_oc_mall_v3
  • Final checkpoint: step 518 (2 epochs)
  • LoRA rank: 32
  • LoRA alpha: 64
  • LoRA dropout: 0.05

CedarInstruct held-out evaluation

Greedy evaluation on 375 independent scenarios:

Metric Result
Syntax validity 99.20% (372/375)
Semantic success 46.93% (176/375)
Macro per-check score 80.78%
Micro per-check score 79.34%

Loading

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_id = "StephenChou/cedar-qwen9b-sft-v2"
adapter_id = "StephenChou/cedar-raise-qwen3.5-9b"

tokenizer = AutoTokenizer.from_pretrained(adapter_id)
base = AutoModelForCausalLM.from_pretrained(
    base_id,
    torch_dtype="auto",
    device_map="auto",
    trust_remote_code=True,
)
model = PeftModel.from_pretrained(base, adapter_id)
model.eval()

For a standalone model, call model.merge_and_unload() and save the merged model locally.

Intended use

Research on translating natural-language access-control requirements into Cedar policies. Outputs should be validated with the Cedar parser and semantic checks before deployment.

License

Apache-2.0, following the base model.

Downloads last month
6
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for StephenChou/cedar-raise-qwen3.5-9b

Adapter
(1)
this model