Text Generation
Transformers
Safetensors
Norwegian Bokmål
Norwegian
t5gemma2
text2text-generation
norwegian
bokmal
bokmål
morphology
normform
🇪🇺 Region: EU
Instructions to use NbAiLab/normform-bokmaal-multitask with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NbAiLab/normform-bokmaal-multitask with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NbAiLab/normform-bokmaal-multitask")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("NbAiLab/normform-bokmaal-multitask") model = AutoModelForMultimodalLM.from_pretrained("NbAiLab/normform-bokmaal-multitask", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NbAiLab/normform-bokmaal-multitask with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NbAiLab/normform-bokmaal-multitask" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NbAiLab/normform-bokmaal-multitask", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NbAiLab/normform-bokmaal-multitask
- SGLang
How to use NbAiLab/normform-bokmaal-multitask with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "NbAiLab/normform-bokmaal-multitask" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NbAiLab/normform-bokmaal-multitask", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "NbAiLab/normform-bokmaal-multitask" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NbAiLab/normform-bokmaal-multitask", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NbAiLab/normform-bokmaal-multitask with Docker Model Runner:
docker model run hf.co/NbAiLab/normform-bokmaal-multitask
Name verified NormForm Bokmål two-task release
Browse files- README.md +5 -5
- normform_provenance.json +1 -1
README.md
CHANGED
|
@@ -5,16 +5,16 @@ tags:
|
|
| 5 |
- norwegian
|
| 6 |
- bokmal
|
| 7 |
- morphology
|
| 8 |
-
-
|
| 9 |
- text2text-generation
|
| 10 |
pipeline_tag: text-generation
|
| 11 |
private: true
|
| 12 |
---
|
| 13 |
|
| 14 |
-
#
|
| 15 |
|
| 16 |
-
This is the private Bokmål
|
| 17 |
-
harness. It generates
|
| 18 |
using document-level morphological style evidence.
|
| 19 |
|
| 20 |
The checkpoint is the final step (47,544; three epochs) of the production SFT
|
|
@@ -27,7 +27,7 @@ private release `NbAiLab/nb-asr-morfologiske-oppgaver-nob-r1` at revision
|
|
| 27 |
|
| 28 |
Clone the `altmorph` repository and follow
|
| 29 |
[`harness/README.md`](https://github.com/NationalLibraryOfNorway/altmorph/tree/main/harness).
|
| 30 |
-
The harness uses
|
| 31 |
private repository requires Hugging Face authentication.
|
| 32 |
|
| 33 |
The underlying model uses the multitask prompts implemented in
|
|
|
|
| 5 |
- norwegian
|
| 6 |
- bokmal
|
| 7 |
- morphology
|
| 8 |
+
- normform
|
| 9 |
- text2text-generation
|
| 10 |
pipeline_tag: text-generation
|
| 11 |
private: true
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# NormForm Bokmål two-task model
|
| 15 |
|
| 16 |
+
This is the private Bokmål NormForm multitask model used by the document
|
| 17 |
+
harness. It generates morphological alternative lattices and resolves those lattices
|
| 18 |
using document-level morphological style evidence.
|
| 19 |
|
| 20 |
The checkpoint is the final step (47,544; three epochs) of the production SFT
|
|
|
|
| 27 |
|
| 28 |
Clone the `altmorph` repository and follow
|
| 29 |
[`harness/README.md`](https://github.com/NationalLibraryOfNorway/altmorph/tree/main/harness).
|
| 30 |
+
The harness uses `NbAiLab/normform-bokmaal-multitask` by default when `--model` is omitted. Access to this
|
| 31 |
private repository requires Hugging Face authentication.
|
| 32 |
|
| 33 |
The underlying model uses the multitask prompts implemented in
|
normform_provenance.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"schema_version": 1,
|
| 3 |
-
"model": "NbAiLab/
|
| 4 |
"source_run": "multitask-nob-1b-production-20260909",
|
| 5 |
"checkpoint_step": 47544,
|
| 6 |
"source_checkpoint": "/nfs/datastore0/perk/output/altmorph-llm-training/runs/multitask-nob-1b-production-20260909/checkpoints/checkpoint-47544",
|
|
|
|
| 1 |
{
|
| 2 |
"schema_version": 1,
|
| 3 |
+
"model": "NbAiLab/normform-bokmaal-multitask",
|
| 4 |
"source_run": "multitask-nob-1b-production-20260909",
|
| 5 |
"checkpoint_step": 47544,
|
| 6 |
"source_checkpoint": "/nfs/datastore0/perk/output/altmorph-llm-training/runs/multitask-nob-1b-production-20260909/checkpoints/checkpoint-47544",
|