Downloads · 30 days
0
4x32/Bielik-7B-polish-law
Bielik-7B-polish-law is a machine learning model from 4x32. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
Fine-tuned version of speakleash/Bielik-7B-Instruct-v0.1 on Polish legal Q&A data using QLoRA (4-bit) with FlashAttention 2.
Downloads · 30 days
0
Access
Public
Updated Apr 6, 2026
Parameters
7.2B
29 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors29 GB · 100%
From the Hugging Face model README
Fine-tuned version of speakleash/Bielik-7B-Instruct-v0.1 on Polish legal Q&A data using QLoRA (4-bit) with FlashAttention 2.
| Property | Value |
|---|---|
| Base model | speakleash/Bielik-7B-Instruct-v0.1 |
| Architecture | Mistral-7B |
| Fine-tuning method | QLoRA (4-bit NF4) |
| Adapter type | LoRA |
| Language | Polish |
| Domain | Legal / Polish law |
| Component | Spec |
|---|---|
| GPU | NVIDIA RTX 3060 12 GB |
| VRAM usage | ~10 GB (with FlashAttention 2) / ~10–11 GB (SDPA) |
| CUDA | 12.1 |
| Parameter | Value |
|---|---|
r (rank) | 16 |
lora_alpha | 32 |
lora_dropout | 0.05 |
bias | none |
target_modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
task_type | CAUSAL_LM |
| Parameter | Value |
|---|---|
| Quantization | 4-bit (load_in_4bit=True) |
| Quant type | NF4 |
| Compute dtype | bfloat16 |
| Double quantization | Yes (saves ~0.4 GB VRAM) |
| Parameter | Value |
|---|---|
| Epochs | 3 |
| Per-device batch size | 2 |
| Gradient accumulation steps | 4 (effective batch size: 8) |
| Learning rate | 2e-4 |
| LR scheduler | cosine |
| Warmup ratio | 0.05 |
| Max sequence length | 2048 |
| Precision | bf16 |
| TF32 | Yes (Ampere GPU benefit) |
| Optimizer | paged_adamw_8bit |
| Gradient checkpointing | Yes (use_reentrant=False) |
| Group by length | Yes |
| Dataloader workers | 4 |
| Seed | 42 |
| Attention implementation | FlashAttention 2 (flash_attention_2) |
| Library | Version |
|---|---|
| PyTorch | 2.5.1+cu121 |
| Transformers | 4.47.0 |
| PEFT | 0.14.0 |
| TRL | 0.13.0 |
| BitsAndBytes | 0.45.0 |
| Datasets | 3.2.0 |
| Accelerate | 1.2.1 |
Custom Polish legal Q&A dataset. Each sample is a single text field formatted as an instruction/response pair in Polish.