Downloads · 30 days
41
2% of all-time downloads
NbAiLab/nb-notram-llama-3.2-1b-instruct
nb-notram-llama-3.2-1b-instruct is a text generation model from NbAiLab. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.2.
"NbAiLab/nb-notram-llama-3.2-1b-instruct" is part of the "NB-Llama-3.x" series (covering "Llama 3.1", "Llama 3.2", and "Llama 3.3" based releases) and the "NoTraM" line of work, trained on top of Meta’s "Llama-3.2-1B-…
Downloads · 30 days
41
2% of all-time downloads
All-time downloads
2K
Public
Parameters
1.2B
7.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors2.5 GB · 100%
From the Hugging Face model README
"NbAiLab/nb-notram-llama-3.2-1b-instruct" is part of the "NB-Llama-3.x" series (covering "Llama 3.1", "Llama 3.2", and "Llama 3.3" based releases) and the "NoTraM" line of work, trained on top of Meta’s "Llama-3.2-1B-Instruct": https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct
The model is fine-tuned to improve instruction-following behavior in Norwegian Bokmål and Norwegian Nynorsk, while aiming to preserve strong English performance.
This release is an experiment in how far modern open-weight models can be adapted for Norwegian using only publicly available data. Although trained at the National Library of Norway, it does not include material that is only accessible through legal deposit. It may include public documents (for example governmental reports) that are publicly available and also part of legal deposit collections.
Adapting instruction-tuned models to Norwegian can be approached in two broad ways:
Adapt a base model first, then instruction-tune.
This tends to improve core Norwegian language modeling reliably, but producing a strong instruction-tuned assistant usually requires substantial alignment work and high-quality supervised data.
Start from an instruction-tuned model, then adapt further.
This leverages general instruction-following behaviors already learned by large multilingual models. In practice, however, it can be difficult to add generalizable Norwegian cultural and historical knowledge at this late stage using only supervised instruction data. We have observed a failure mode where new knowledge becomes brittle and overly prompt-dependent—usable in narrow contexts, but not reliably accessible across phrasing and tasks. Internally we refer to this as "knowledge pocketing".
Within the "NoTraM" project, we explore techniques for adapting instruction-tuned models to Norwegian language, culture, and history while explicitly trying to reduce "knowledge pocketing" and improve generalization. This line of work is intentionally distinct from the "NB-GPT" approach, which primarily targets training from scratch or from base models using established pretraining-first recipes.
For smaller languages, fully closed post-training pipelines are rarely reproducible. Public-data approaches are therefore a pragmatic path to improving Norwegian-capable models—while being explicit about limitations and the remaining gap to highly resourced multilingual instruction-tuned systems.
This is a research release. For end-user deployments, we recommend careful evaluation in your target setting. Quantized variants (when provided) typically run faster with minimal loss in quality on many platforms. When fine-tuning instruction-tuned Llama models, best results usually require using the correct "Llama 3.2" chat templates.
import torch
from transformers import pipeline
model_id = "NbAiLab/nb-notram-llama-3.2-1b-instruct"
pipe = pipeline(
task="text-generation",
model=model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "user", "content": "Hvem døde på Stiklestad?"},
]
outputs = pipe(messages, max_new_tokens=256)
print(outputs[0]["generated_text"][-1])
Training is based entirely on publicly available datasets and synthetically generated data.
For more details on the base model’s pretraining data and data selection, see: https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct
Only a small subset of raw web-scale data was used. We used the "FineWeb" approach as inspiration for large-scale web data curation and filtering, and applied similar principles when selecting and filtering public data: https://huggingface.co/spaces/HuggingFaceFW/blogpost-fineweb-v1
In addition, we trained "Corpus Quality Classifiers" (educational value + linguistic quality) based on "NbAiLab/nb-bert-base" and release them as part of the broader "NB-Llama" effort:
Classifier collection:
https://huggingface.co/collections/NbAiLab/corpus-quality-classifier-673f15926c2774fcc88f23aa
What we optimize for:
To support transparency obligations under the EU AI Act, this model card documents:
The training data used for this release is restricted to publicly available sources as described above (no legal-deposit-only material).
The model is released under the "Llama 3.2 Community License": https://github.com/meta-llama/llama-models/blob/main/models/llama3.2/LICENSE
Refer to the "Acceptable Use Policy" for restrictions: https://llama.meta.com/llama3.2/use-policy
Model training and documentation: Per Egil Kummervold.
Training was supported by Google’s TPU Research Cloud ("TRC"), which provided Cloud TPUs essential for the computational work.