Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
Viking 13B is a 13B parameter decoder-only transformer pretrained on Finnish,
English, Swedish, Danish, Norwegian, Icelandic and code. It is being trained
on 2 trillion tokens (1.3 trillion as of this release). Viking 13B is a fully open source model and is made available under the Apache 2.0 License.
This project is part of an ongoing effort to create open source large language models for non-English and especially low resource languages like Finnish. The mode is fluent in Finnish, English, the Scandinavian languages and capable of basic translation between them. It is also able to understand and generate code.
Model Family
Viking is the second set of models released by LumiOpen and is available at
3 parameter counts:
NOTE:
This is a base model which needs further fine tuning for most use cases.
Viking is a generative pretrained transformer using a LLaMA-like GPT architecture, and makes use of rotary positional embeddings and flash attention.
Hyperparameter
Value
n_parameters
14B
n_layers
40
n_heads
40
d_model
5120
vocab_size
131072
sequence_length
4096
Training
Viking 13B was trained on the LUMI supercomputer, using 512 AMD MI250X GPUs. Each MI250X GPU has two Graphics Complex Dies (GCDs) for a world size of 1024 during training, using activation checkpointing, a micro batch size of 1, gradient accumulation of 16, and a 3D parallelism strategy of TP=2, PP=4, DP=128.
Training began in September 2023 using a
custom fork
of the Megatron-Deepspeed framework.
Training Hyperparameters
Hyperparameter
Value
Comment
Precision
bfloat16
Optimizer
AdamW
Learning rate
3e-4
10B tokens warm-up, cosine decay to 3e-5
Weight decay
1e-1
Batch size
1024
1024 samples x 4096 tokens = 4194304 tokens
Tokenizer
Viking uses a custom 128K Bloom tokenizer trained on the same English, Finnish, Swedish, Danish, Norwegian, Icelandic and code dataset used to train the model.
Dataset
Viking is being trained on a 2 trillion token mixed dataset of English, Finnish, Swedish, Danish, Norwegian, Icelandic and code.
More details on exact dataset will be published soon.
Evaluation Results
Full evaluation results will be published with the final model.
Training checkpoints
Training checkpoints are available as branches in the repository. Checkpoints will be released roughly every 100B tokens. The main branch will always point to the latest checkpoint. The following checkpoints are available:
The transformers library allows you to load a checkpoint from a branch as follows:
branch = "1700B"
model = transformers.AutoModelForCausalLM.from_pretrained(
"LumiOpen/Viking-13B",
torch_dtype=torch.bfloat16 if torch.cuda.is_bf16_supported() else torch.float16,
revision=branch,
)
Ethical Considerations and Limitations
Viking 13B is a release of a partially trained model, and special care should be taken when using any output.
Viking is an advanced language model, primarily optimized for English, Finnish, Swedish, Norwegian, Danish, Icelandic and code, with no meaningful proficiency in any other languages. As with most AI-driven systems, Viking is a product of the vast data it has been trained on, which may reflect the imperfections, biases, and idiosyncrasies of the wider web. Viking may, at times, produce outputs that can be considered inaccurate, prejudiced, or controversial. Users and developers engaging with Viking should exercise discretion and consider additional evaluation and customization to ensure the model's responses align with their specific needs and ethical standards.
License
Viking is released under the Apache 2.0 license.
Runs of LumiOpen Viking-13B on huggingface.co
210
Total runs
0
24-hour runs
0
3-day runs
-22
7-day runs
-627
30-day runs
More Information About Viking-13B huggingface.co Model
Viking-13B huggingface.co is an AI model on huggingface.co that provides Viking-13B's model effect (), which can be used instantly with this LumiOpen Viking-13B model. huggingface.co supports a free trial of the Viking-13B model, and also provides paid use of the Viking-13B. Support call Viking-13B model through api, including Node.js, Python, http.
Viking-13B huggingface.co is an online trial and call api platform, which integrates Viking-13B's modeling effects, including api services, and provides a free online trial of Viking-13B, you can try Viking-13B online for free by clicking the link below.
LumiOpen Viking-13B online free url in huggingface.co:
Viking-13B is an open source model from GitHub that offers a free installation service, and any user can find Viking-13B on GitHub to install. At the same time, huggingface.co provides the effect of Viking-13B install, users can directly use Viking-13B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.