Downloads · 30 days
0
KRadim/flax-lora-distilbert-base-uncased
flax-lora-distilbert-base-uncased is a question answering model from KRadim. Use it when the input is a question plus a passage. The card lists the license as apache-2.0.
This adapter was trained using Flax NNX for the task of sentiment classification on the IMDB dataset.
Downloads · 30 days
0
Access
Public
Updated Sep 19, 2025
Repo size
56.3 MB
Likes
0
Public
Click a slice to open those files.
.pkl29.5 MB · 52%
From the Hugging Face model README
This adapter was trained using Flax NNX for the task of sentiment classification on the IMDB dataset.
# Loading and using the adapter
import orbax.checkpoint as ocp
import pickle
# Method 1: Orbax (recommended for larger models)
checkpointer = ocp.StandardCheckpointer()
lora_params = checkpointer.restore("lora_checkpoint")
# Method 2: Pickle (easier for smaller models)
with open("lora_params.pkl", "rb") as f:
lora_params = pickle.load(f)
# Reconstruction of LoRA layers
from flax import nnx
lora_layers = None
for layer_name, params in lora_params.items():
# Create a new LoRA layer with the correct parameters
# (implementation depends on the specific architecture)
pass