Text Generation
Transformers
Safetensors
Norwegian
Norwegian Bokmål
Norwegian Nynorsk
qwen3
norwegian
bokmaal
nynorsk
in5640
bigfamtllm
text-generation-inference
Instructions to use BigFamTLLM/no-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BigFamTLLM/no-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BigFamTLLM/no-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BigFamTLLM/no-base") model = AutoModelForCausalLM.from_pretrained("BigFamTLLM/no-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BigFamTLLM/no-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BigFamTLLM/no-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BigFamTLLM/no-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BigFamTLLM/no-base
- SGLang
How to use BigFamTLLM/no-base 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 "BigFamTLLM/no-base" \ --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": "BigFamTLLM/no-base", "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 "BigFamTLLM/no-base" \ --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": "BigFamTLLM/no-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BigFamTLLM/no-base with Docker Model Runner:
docker model run hf.co/BigFamTLLM/no-base
Upload no-base
Browse filesJosep's Megatron-Bridge 0.4.2 export of the BigFamTLLM experiment (weights, tokenizer.json, generation_config.json unchanged); config.json and tokenizer_config.json patched for transformers 4.x; model card.
- README.md +1 -1
- tokenizer_config.json +5 -1
README.md
CHANGED
|
@@ -55,7 +55,7 @@ One of 50 models of the BigFamTLLM experiment (course IN5640 *Developing Large L
|
|
| 55 |
- Learning rate: base models and CPT 5e-4 after 2,000 warm-up iterations, then constant (warmup-stable); embeddings-only stage 1e-4 after 100 warm-up iterations; annealing warm-up of 100 iterations to 5e-4, then linear decay to 0 over the 916 iterations.
|
| 56 |
- Data: HPLT 4.0 web data, tokenized by the team. Annealing data: the high-quality Norwegian HPLT shards (Bokmål 10_1, Nynorsk 9_1 and 10_1).
|
| 57 |
- Compute (GPU hours): base models 286.30 (Norwegian), 288.19 (Danish), 295.56 (multilingual); CPT 280.01 (Danish), 281.16 (multilingual); multilingual embeddings-only stage 4.69; one annealing 5.5–5.8.
|
| 58 |
-
- Converted from the Megatron checkpoint to Hugging Face format with Megatron-Bridge 0.4.2. `config.json` and `tokenizer_config.json` were adjusted afterwards so the model also loads in transformers 4.x (top-level `rope_theta`, `PreTrainedTokenizerFast`, `model_max_length` 4,096); the weights are unchanged.
|
| 59 |
|
| 60 |
## Evaluation
|
| 61 |
|
|
|
|
| 55 |
- Learning rate: base models and CPT 5e-4 after 2,000 warm-up iterations, then constant (warmup-stable); embeddings-only stage 1e-4 after 100 warm-up iterations; annealing warm-up of 100 iterations to 5e-4, then linear decay to 0 over the 916 iterations.
|
| 56 |
- Data: HPLT 4.0 web data, tokenized by the team. Annealing data: the high-quality Norwegian HPLT shards (Bokmål 10_1, Nynorsk 9_1 and 10_1).
|
| 57 |
- Compute (GPU hours): base models 286.30 (Norwegian), 288.19 (Danish), 295.56 (multilingual); CPT 280.01 (Danish), 281.16 (multilingual); multilingual embeddings-only stage 4.69; one annealing 5.5–5.8.
|
| 58 |
+
- Converted from the Megatron checkpoint to Hugging Face format with Megatron-Bridge 0.4.2. `config.json` and `tokenizer_config.json` were adjusted afterwards so the model also loads in transformers 4.x (top-level `rope_theta`, `PreTrainedTokenizerFast`, `model_max_length` 4,096, no `token_type_ids`); the weights are unchanged.
|
| 59 |
|
| 60 |
## Evaluation
|
| 61 |
|
tokenizer_config.json
CHANGED
|
@@ -3,5 +3,9 @@
|
|
| 3 |
"eos_token": "<|endoftext|>",
|
| 4 |
"model_max_length": 4096,
|
| 5 |
"pad_token": "<|pad|>",
|
| 6 |
-
"tokenizer_class": "PreTrainedTokenizerFast"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
}
|
|
|
|
| 3 |
"eos_token": "<|endoftext|>",
|
| 4 |
"model_max_length": 4096,
|
| 5 |
"pad_token": "<|pad|>",
|
| 6 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 7 |
+
"model_input_names": [
|
| 8 |
+
"input_ids",
|
| 9 |
+
"attention_mask"
|
| 10 |
+
]
|
| 11 |
}
|