--- license: cc-by-4.0 task_categories: - text-generation language: - en tags: - legal - distillation - grpo - deepseek - rlhf - reinforcement-learning --- # βš–οΈ DeepSeek-0528-8B Legal Distill Dataset This repository contains a high-density trajectory dataset generated during the **GRPO (Group Relative Policy Optimization)** training of the **DeepSeek-8B** architecture. It is specifically optimized for advanced **Knowledge Distillation** and structural legal reasoning. πŸš€ ## πŸ’‘ The Concept: "Log-as-Distillation" Traditional training often treats logs as temporary metadata. This dataset flips that script. By capturing the **multi-generation groups** produced during GRPO and pairing them with **complex, multi-dimensional reward scores**, we provide a ready-made "map" of model behavior. πŸ—ΊοΈ Instead of just seeing the "best" answer, you see the variety of attempts the model made and exactly why certain outputs were favored over others. This allows for: * 🎯 **Precision Filtering:** Users can extract only the highest-scoring reasoning paths. * πŸ“‰ **Negative Constraint Learning:** Analyze low-scoring outputs to understand and prevent common legal hallucinations. ## πŸ› οΈ Complex Scoring Architecture Unlike simpler models, the **DeepSeek-0528-8B** run utilized a sophisticated reward ensemble to evaluate each generation: 1. **Legal Accuracy Reward:** Measures alignment with statutory references and regulatory language. πŸ“œ 2. **Structural Format Reward:** Ensures the model adheres to strict markdown or JSON schemas required for legal tech integration. πŸ—οΈ 3. **Logical Consistency Reward:** Evaluates the internal "Chain of Thought" (CoT) for contradictions. 🧠 4. **Length & Verbosity Penalty:** Incentivizes concise, high-impact legal advice. βœ‚οΈ ## ☁️ Cloud-to-Cloud (C2C) Pipeline This dataset was built using a seamless, automated workflow: * **Infrastructure:** Orchestrated across high-performance cloud platforms. ⚑ * **Direct Sync:** A specialized pipeline pulls the base weights and pushes the resulting trajectory logs directly to **Hugging Face** in real-time. πŸ”„ * **Integrity:** Developed using legitimate developer methods, ensuring high-quality data lineage and zero-noise acquisition. βœ… ## πŸ“‚ Dataset Structure Each entry includes: * **Prompt:** The legal inquiry or regulatory task. * **Generation Group:** A collection of $N$ completions sampled for relative advantage. * **Weighted Rewards:** A detailed breakdown of the multi-complex scores for each completion. * **Model Metadata:** Checkpoint information from the DeepSeek-0528-8B training run. ## πŸ§ͺ Use Cases * **Student Distillation:** Train smaller models (1B–3B) to mimic the 8B model's complex reasoning. πŸŽ“ * **RLHF Research:** Test new reward functions against pre-existing model trajectories. πŸ”¬ * **Legal RAG Refinement:** Improve the "reasoning" step in Retrieval-Augmented Generation pipelines. πŸ” ## πŸ“œ License & Attribution This dataset is licensed under the **Creative Commons Attribution 4.0 International (CC BY 4.0)**. πŸ“ ### Attribution 1. **Dataset Curator:** Azzindani (via Hugging Face Datasets). 2. **Base Architecture:** DeepSeek-AI. --- **Disclaimer:** *These generations are byproducts of an experimental RL run. Users should perform their own safety and fact-checking audits before deploying distilled models in production legal environments.* ⚠️ ---