Text Generation
Transformers
PyTorch
Safetensors
GGUF
Norwegian
Norwegian Bokmål
Norwegian Nynorsk
bloom
feature-extraction
gpt
generative
text-generation-inference
Instructions to use norallm/norbloom-7b-scratch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use norallm/norbloom-7b-scratch with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="norallm/norbloom-7b-scratch")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("norallm/norbloom-7b-scratch") model = AutoModel.from_pretrained("norallm/norbloom-7b-scratch", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use norallm/norbloom-7b-scratch with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf norallm/norbloom-7b-scratch:Q4_K_M # Run inference directly in the terminal: llama cli -hf norallm/norbloom-7b-scratch:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf norallm/norbloom-7b-scratch:Q4_K_M # Run inference directly in the terminal: llama cli -hf norallm/norbloom-7b-scratch:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf norallm/norbloom-7b-scratch:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf norallm/norbloom-7b-scratch:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf norallm/norbloom-7b-scratch:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf norallm/norbloom-7b-scratch:Q4_K_M
Use Docker
docker model run hf.co/norallm/norbloom-7b-scratch:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use norallm/norbloom-7b-scratch with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "norallm/norbloom-7b-scratch" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "norallm/norbloom-7b-scratch", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/norallm/norbloom-7b-scratch:Q4_K_M
- SGLang
How to use norallm/norbloom-7b-scratch 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 "norallm/norbloom-7b-scratch" \ --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": "norallm/norbloom-7b-scratch", "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 "norallm/norbloom-7b-scratch" \ --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": "norallm/norbloom-7b-scratch", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use norallm/norbloom-7b-scratch with Ollama:
ollama run hf.co/norallm/norbloom-7b-scratch:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use norallm/norbloom-7b-scratch with Docker Model Runner:
docker model run hf.co/norallm/norbloom-7b-scratch:Q4_K_M
- Lemonade
How to use norallm/norbloom-7b-scratch with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull norallm/norbloom-7b-scratch:Q4_K_M
Run and chat with the model
lemonade run user.norbloom-7b-scratch-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -372,4 +372,29 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 372 |
load_in_8bit=True,
|
| 373 |
torch_dtype=torch.bfloat16
|
| 374 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 375 |
```
|
|
|
|
| 372 |
load_in_8bit=True,
|
| 373 |
torch_dtype=torch.bfloat16
|
| 374 |
)
|
| 375 |
+
```
|
| 376 |
+
|
| 377 |
+
### Citation
|
| 378 |
+
|
| 379 |
+
```bibtex
|
| 380 |
+
@inproceedings{samuel-etal-2025-small,
|
| 381 |
+
title = "Small Languages, Big Models: {A} Study of Continual Training on Languages of {Norway}",
|
| 382 |
+
author = "Samuel, David and
|
| 383 |
+
Mikhailov, Vladislav and
|
| 384 |
+
Velldal, Erik and
|
| 385 |
+
{\O}vrelid, Lilja and
|
| 386 |
+
Charpentier, Lucas Georges Gabriel and
|
| 387 |
+
Kutuzov, Andrey and
|
| 388 |
+
Oepen, Stephan",
|
| 389 |
+
editor = "Johansson, Richard and
|
| 390 |
+
Stymne, Sara",
|
| 391 |
+
booktitle = "Proceedings of the Joint 25th Nordic Conference on Computational Linguistics and 11th Baltic Conference on Human Language Technologies (NoDaLiDa/Baltic-HLT 2025)",
|
| 392 |
+
month = mar,
|
| 393 |
+
year = "2025",
|
| 394 |
+
address = "Tallinn, Estonia",
|
| 395 |
+
publisher = "University of Tartu Library",
|
| 396 |
+
url = "https://aclanthology.org/2025.nodalida-1.61/",
|
| 397 |
+
pages = "573--608",
|
| 398 |
+
ISBN = "978-9908-53-109-0"
|
| 399 |
+
}
|
| 400 |
```
|