celsowm/qwen3-4b-legal-br

Hugging Face
TEXT GENERATIONConcurrency Cost:1Model Size:4BQuant:BF16Ctx Length:32kPublished:May 10, 2026Architecture:Transformer Warm

The celsowm/qwen3-4b-legal-br model is a 4 billion parameter language model fine-tuned from Qwen/Qwen3-4B, specifically optimized for legal applications in Brazil. This model leverages a 32768 token context length and was trained using the TRL framework. Its primary strength lies in processing and generating text relevant to the Brazilian legal domain.

Loading preview...

Model Overview

The celsowm/qwen3-4b-legal-br is a specialized 4 billion parameter language model, fine-tuned from the base Qwen/Qwen3-4B architecture. This model has been specifically adapted for the Brazilian legal context, indicating a focus on legal terminology, documents, and reasoning relevant to Brazil.

Key Characteristics

  • Base Model: Qwen3-4B, a robust foundation for language understanding and generation.
  • Parameter Count: 4 billion parameters, offering a balance between performance and computational efficiency.
  • Context Length: Features a substantial 32768 token context window, enabling the processing of longer legal documents and complex queries.
  • Training Framework: Fine-tuned using the TRL (Transformers Reinforcement Learning) library, suggesting a supervised fine-tuning (SFT) approach to adapt it to its specific domain.

Intended Use Cases

This model is particularly well-suited for applications requiring an understanding or generation of text within the Brazilian legal framework. Potential use cases include:

  • Legal document analysis and summarization.
  • Answering legal questions specific to Brazilian law.
  • Assisting with legal research and drafting in Portuguese for the Brazilian context.
  • Developing AI-powered tools for legal professionals in Brazil.