CoolFace
Modelpublic

prithivMLmods/RL-Quantum-4B-GGUF

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes282downloads
Model Card

RL-Quantum-4B-GGUF

QUASAR is a 4B-parameter language model fine-tuned from Qwen3-4B-Instruct-2507 through supervised learning followed by agentic reinforcement learning with tool-augmented feedback. Specially designed for generating OpenQASM 3.0 quantum circuits for tasks like QAOA and VQE, the model optimizes for both syntactic validity and semantic fidelity, using external quantum simulation for reward calculation across hierarchical criteria (syntax, distribution alignment, expectation value, and optimization progress). QUASAR is best suited for natural language to quantum circuit generation and quantum optimization algorithm design in research or integration scenarios, though users are advised to validate its outputs using external quantum simulators to address limitations in problem generalization. Training used a dataset with QASM 3.0 circuits and quantum optimization problems, employing SFT and RL (with GRPO and hierarchical reward). In evaluations, the model substantially outperforms comparable baselines—achieving leading results in syntactic correctness, distributional alignment, expectation-value matching, and high-quality circuit yield in both Pass@1 and Pass@10 metrics.

Model Files

File NameQuant TypeFile Size
rlquantum4b.BF16.ggufBF168.05 GB
rlquantum4b.F16.ggufF168.05 GB
rlquantum4b.F32.ggufF3216.1 GB
rlquantum4b.Q2_K.ggufQ2_K1.67 GB
rlquantum4b.Q3KL.ggufQ3KL2.24 GB
rlquantum4b.Q3KM.ggufQ3KM2.08 GB
rlquantum4b.Q3KS.ggufQ3KS1.89 GB
rlquantum4b.Q4KM.ggufQ4KM2.5 GB
rlquantum4b.Q4KS.ggufQ4KS2.38 GB
rlquantum4b.Q5KM.ggufQ5KM2.89 GB
rlquantum4b.Q5KS.ggufQ5KS2.82 GB
rlquantum4b.Q6_K.ggufQ6_K3.31 GB
rlquantum4b.Q8_0.ggufQ8_04.28 GB

Quants Usage

(sorted by size, not necessarily quality. IQ-quants are often preferable over similar sized non-IQ quants)

Here is a handy graph by ikawrakow comparing some lower-quality quant types (lower is better):

image.png