u-μP: Stable training in low precision for a significant speed-up and memory reduction during training
This Repository holds the model weights for the u-μP models trained at Aleph Alpha Research, in collaboration with Graphcore, for 72k steps (300B tokens). Please note, that the released checkpoints are not fully converged models and are intended for research use only.
You can find all model weights at the following links:
The Maximal Update Parametrization (μP) aims to make the optimal hyperparameters (HPs) of a model-independent of its size, allowing them to be swept using a cheap proxy model rather than the full-size target model. We present a new scheme, u-μP, which improves upon μP by combining it with Unit Scaling, a method for designing models that makes them easy to train in low precision. The two techniques have a natural affinity: μP ensures that the scale of activations is independent of model size, and Unit Scaling ensures that activations, weights, and gradients begin training with a scale of one. This synthesis opens the door to a simpler scheme, whose default values are near-optimal. This in turn facilitates a more efficient sweeping strategy, with u-μP models reaching a lower loss than comparable μP models and working out-of-the-box in FP8.
If you want to learn more details about u-μP, check out our
blog post
and our
paper
.
Unit-Scaled Maximal Update Parametrization (u-μP) is available in
Scaling
, our official large-scale training codebase. Please note, that FP8-trained checkpoints only work on chips with FP8 support, like the Hopper architecture.
Usage
You can generate tokens with the
Scaling
inference implementation:
from scaling.transformer.inference import TransformerInferenceModule
from pathlib import Path
ckpt_path = Path("<path_to_repo>/7B_umup_fp8")
model = TransformerInferenceModule.from_checkpoint(ckpt_path)
prompt = "Yesterday I dreamt of"
output = model.generate(max_tokens=100, input_text=prompt)
print(output.completion_text)
Runs of Aleph-Alpha umup-research-7b-fp8 on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About umup-research-7b-fp8 huggingface.co Model
umup-research-7b-fp8 huggingface.co is an AI model on huggingface.co that provides umup-research-7b-fp8's model effect (), which can be used instantly with this Aleph-Alpha umup-research-7b-fp8 model. huggingface.co supports a free trial of the umup-research-7b-fp8 model, and also provides paid use of the umup-research-7b-fp8. Support call umup-research-7b-fp8 model through api, including Node.js, Python, http.
umup-research-7b-fp8 huggingface.co is an online trial and call api platform, which integrates umup-research-7b-fp8's modeling effects, including api services, and provides a free online trial of umup-research-7b-fp8, you can try umup-research-7b-fp8 online for free by clicking the link below.
Aleph-Alpha umup-research-7b-fp8 online free url in huggingface.co:
umup-research-7b-fp8 is an open source model from GitHub that offers a free installation service, and any user can find umup-research-7b-fp8 on GitHub to install. At the same time, huggingface.co provides the effect of umup-research-7b-fp8 install, users can directly use umup-research-7b-fp8 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
umup-research-7b-fp8 install url in huggingface.co: