Comments (11)
I tried this out on the branch Torch2-RMSNorm
using torch.autocast()
to manually control precision. It was much slower.
However when I stopped messing with autocast it was faster:
from olmo.
Final results: https://wandb.ai/ai2-llm/petew-benchmarks-2/reports/LayerNorm-Benchmarks--VmlldzozOTI1NTA4
These results tell us that to optimize throughput we should use --model.layer_norm_type=rms
when compiling and --model.layer_norm_type=low_precision
when not compiling.
from olmo.
@epwalsh at this point we should also look at end task performance than absolute speedup results
Some of these decisions in bloom were made based on downstream eval and not just throughput: https://arxiv.org/pdf/2210.15424.pdf
from olmo.
like I think SwiGLU and alibi are non-negotiable based on end task performance
from olmo.
Absolutely
from olmo.
Only problem with ALiBi is that it incurs a significant performance hit since it doesn't work with the current Flash Attention implementation.
from olmo.
Is low_precision
stable enough for use? I thought doing LN in 32-bits was a major stability hack in BLOOM.
from olmo.
Is low_precision stable enough for use? I thought doing LN in 32-bits was a major stability hack in BLOOM.
That remains to be seen.
from olmo.
What about Alibi vs. Rope?
from olmo.
performance or throughput?
from olmo.
from olmo.
Related Issues (20)
- Resuming training on unsharded checkpoint HOT 5
- What did OLMo 1B converge to? HOT 1
- Issue with tokenizer wrapper
- start_index not getting reset in data loader when moving to new epoch HOT 4
- Cannot convert internal OLMo checkpoint to HF HOT 2
- Can long text be splitted into short texts?
- Is there explicitly instruction-following data in the version of Dolma used to train v1? HOT 1
- DDP training tries to save sharded checkpoint on the last step
- Does global_train_batch_size support gradient accumulation? HOT 1
- mlp_ratio not adjusted in config if mlp_hidden_size is set
- Initial Loss increased from 10 (0.3.0 v) to 60 (0.4.0) ! HOT 9
- Model ladder has no documentation HOT 1
- Olmo 0724 `-hf` checkpoints don't load the proper config when instantiating with OLMoForCausalLM HOT 2
- why CrossEntropyLoss is zero,i HOT 2
- Gflops computation is faulty for FSDP due to bug in `OLMo.num_params()`
- Number of tokens Olmo-1B was trained: 2T or 3T? HOT 1
- slurm script for: configs/official/OLMo-7B.yaml HOT 3
- RuntimeError: Triton Error [CUDA]: invalid device context HOT 4
- [Quick question]: How do I turn off FSDP? HOT 1
- OLMoThreadError: generator thread data thread 0 failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from olmo.