Downloads · 30 days
8
9% of all-time downloads
markjoseph2003/JurisSim-32B-v3
JurisSim-32B-v3 is a machine learning model from markjoseph2003. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
<div align="center" <img src="https://img.shields.io/badge/AMD-DeveloperHackathon-ED1C24?style=for-the-badge&logo=amd&logoColor=white" alt="AMD Hackathon Badge"/ <img src="https://img.shields.io/badge/Hardware-MI300XA…
Downloads · 30 days
8
9% of all-time downloads
All-time downloads
85
Public
Parameters
32.8B
131 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors131 GB · 100%
From the Hugging Face model README
JurisSim-32B v3.1 is a neuro-symbolic legislative stress-tester designed for the AMD Instinct MI300X. It translates natural language legal clauses into Z3 SMT-LIB formal constraints to identify adversarial loopholes with mathematical certainty.
We have moved beyond a single model to a Multi-Agent Feedback Loop:
To switch to another device (e.g., another MI300X or a high-VRAM workstation):
git clone https://github.com/Mark-Joseph-42/JurisSim.git
cd JurisSim
huggingface-cli download markjoseph2003/JurisSim-32B-v3 --local-dir jurissim-merged-v1
python app.py
Qwen/Qwen3-32BbitsandbytesTraining a massive 32-billion parameter model on a single MI300X GPU required severe optimization to avoid mathematical overflows and Out of Memory (OOM) crashes.
sdpa (Scaled Dot-Product Attention) implementation suffered a math overflow bug on ROCm 6.2 when handling sequences with padding tokens alongside gradient checkpointing, resulting in catastrophic NaN gradients.flash_attention_2 for ROCm from source is time-prohibitive, we engineered an ultra-stable configuration that perfectly maximized the 192GB VRAM without hitting the bug:
eager mathematical attention block to avoid sdpa math corruption.per_device_train_batch_size=1 but massively increased gradient_accumulation_steps=8 to maintain an effective batch size of 8.gradient_checkpointing=True to prevent the eager attention matrices from consuming all 192GB of VRAM during the backward pass.per_device_eval_batch_size=1 to ensure the un-checkpointed validation phase did not crash the GPU.The model successfully converged after 3 Epochs (1,713 Steps).
1.7561.676 (Signaling excellent generalization and zero overfitting).62.61% (Extremely high for complex Legal English → Python Z3 logic translation).grad_norm of ~0.3 to ~0.8 throughout the run.git clone https://github.com/Mark-Joseph-42/JurisSim.git
cd JurisSim
Ensure you are running on an AMD machine with ROCm installed.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Ensure bitsandbytes is configured for ROCm
pip install https://github.com/bitsandbytes-foundation/bitsandbytes/releases/download/v0.44.1/bitsandbytes-0.44.1-py3-none-manylinux_2_24_x86_64.whl
The LoRA adapters are publicly available on Hugging Face:
huggingface-cli download markjoseph2003/JurisSim-32B-LoRA --local-dir ./jurissim-lora
(The Agentic Execution loop and Frontend UI are currently being finalized. Instructions for launching the UI will be placed here shortly).
The interactive demo of JurisSim will be deployed as a Hugging Face Space for the hackathon judging. The link will be provided upon completion of the UI.
<div align="center"> <p><i>Built with ❤️ for the AMD Developer Hackathon</i></p> </div>