transformers
Add OLMo model family
#29890
Merged

Add OLMo model family #29890

2015aroras
2015aroras Add OLMo using add-new-model-like with Llama
0afbd4a3
2015aroras Fix incorrect tokenizer for OLMo
9842c5c5
2015aroras Copy-paste relevant OLMo methods and their imports
fc21050a
2015aroras Add OLMo config
3a748b90
2015aroras Modify OLMo config to follow HF conventions
e15ed3c1
2015aroras Remove unneeded Llama code from OLMo model
0090b1a6
2015aroras Add ability for OLMo model to output attentions
8719408b
2015aroras Add OLMoPreTrainedModel and OLMoModel
8b1f0821
2015aroras Add OLMoForCausalLM
49bb675d
2015aroras Minor fixes to OLMo model for style and missing functions
32ec3808
2015aroras Implement OLMo tokenizer
cba91d4c
2015aroras Implement OLMo to HF conversion script
7cc2a9aa
2015aroras Add tests for OLMo model
a1f92949
2015aroras Add tests for OLMo fast tokenizer
f4fa8048
2015aroras Add auto-generated dummy objects
7b287cad
2015aroras Remove unimplemented OLMo classes from auto and init classes and re-f…
d1ba9c75
2015aroras Add README and associated auto-generated files
159b124d
2015aroras Use OLMo names for common properties
8d8baf5b
2015aroras Run make fixup
42492b90
2015aroras Remove `|` from OLMo typing
a92d52a3
2015aroras Remove unneeded tokenization_olmo.py
f59ea67f
2015aroras
ArthurZucker
ArthurZucker commented on 2024-03-27
ArthurZucker ArthurZucker added New model
2015aroras
ArthurZucker
2015aroras
ArthurZucker
2015aroras Revert model, config and converter to add-new-model-like Llama
4bc9b6bd
2015aroras Move logic for adding bos/eos token into GPTNeoxTokenizerFast
4fdd1dad
2015aroras Change OLMoConfig defaults to match OLMo-7B
3e8ceb14
2015aroras Use GPTNeoXToknizerFast in OLMo tokenizer tests
f68a915d
2015aroras Modify auto-generated OLMoModelTests to work for OLMo
43eaeffc
2015aroras Add non-parametric layer norm OLMoLayerNorm
6dd18528
2015aroras Update weight conversion script for OLMo
7b438cd8
2015aroras Fix __init__ and auto structure for OLMo
33461951
2015aroras Fix errors from make fixup
7ba083f2
2015aroras Remove OLMoTokenizerFast from documentation
47affa6a
2015aroras
ArthurZucker
2015aroras
molbap
molbap commented on 2024-04-05
2015aroras Merge remote-tracking branch 'upstream/main' into add-olmo-implementa…
b468a0a9
2015aroras Add missing 'Copied from' for OLMoModel._update_causal_mask
98db6a92
2015aroras Run make fix-copies
dd0f76c1
2015aroras Rearrange string replacements in OLMoForCausalLM Copied from
03407788
2015aroras Move OLMo and Llama CausalLM.forward example into global constants
edbc4d1e
2015aroras Fix OLMO_GENERATION_EXAMPLE doc string typo
75f5ceeb
2015aroras
molbap
2015aroras
molbap
2015aroras Add option for qkv clipping to OLMo
94b31e1d
2015aroras Rearrange OLMoConfig kwargs in convert_olmo_weights_to_hf
3805b97d
2015aroras Add clip_qkv to OLMoConfig in convert_olmo_weights_to_hf
a5558193
2015aroras Fix OLMo tokenization bug using conversion script
aea6b062
2015aroras Keep model in full precision after conversion
0bbb55ad
2015aroras Do not add eos token automatically
21faf45e
2015aroras Update references to OLMo model in HF Hub
ee005837
2015aroras Do not add eos token during encoding by default
63a6fbd0
2015aroras Fix Llama generation example
76c79709
2015aroras Run make fixup
450f0381
2015aroras OLMo 7B integration test fix
4df56a4b
2015aroras Merge branch 'main' into add-olmo-implementation
faa188f7
2015aroras Remove unneeded special case for OLMoConfig
0b227bb2
2015aroras OLMo 7B Twin 2T integration test fix
9ff65a4a
2015aroras Fix test_model_7b_greedy_generation
70f593d3
2015aroras Remove test_compile_static_cache
54f4aa59
2015aroras Fix OLMo and Llama generation example
33d3be71
2015aroras Run make fixup
eab18b6d
2015aroras
2015aroras 2015aroras marked this pull request as ready for review 2 years ago
2015aroras
2015aroras commented on 2024-04-13
molbap
molbap commented on 2024-04-13
molbap
molbap commented on 2024-04-13
molbap
2015aroras Revert "OLMo 7B integration test fix"
628f9d5d
2015aroras Revert "OLMo 7B Twin 2T integration test fix"
751195f7
2015aroras Ungate 7B integration tests and fix greedy generation test
68466ddc
2015aroras Add retries for flaky test_eager_matches_sdpa_generate
91f163f9
2015aroras Fix output of doc example for OLMoForCausalLM.forward
aa4a92f3
2015aroras Downsize OLMo doc test for OLMoForCausalLM.forward to 1B model
43ea80ef
2015aroras Try fix incorrect characters in OLMoForCausalLM.forward doct test
fcc457cc
2015aroras Try fix incorrect characters in OLMoForCausalLM.forward doc test usin…
e5fdf507
2015aroras
ArthurZucker
ArthurZucker commented on 2024-04-16
2015aroras Remove pretraining_tp from OLMo config and model
4f062d76
2015aroras Add missing 'Copied from' instances
3c60cf3a
2015aroras Remove unneeded causal_mask from OLMoModel
a037fcac
2015aroras Revert Llama changes
004f80ed
2015aroras Ignore copy for OLMoForCausalLM.forward
826c91ba
2015aroras Change 'OLMo' to 'Olmo' in classes
c7f4e748
2015aroras Move minimal OLMo tokenization tests to model tests
ec344c3a
2015aroras Add missed 'Copied from' for repeat_kv
78148fe1
2015aroras
ArthurZucker
ArthurZucker approved these changes on 2024-04-17
ArthurZucker ArthurZucker merged e4ea19b9 into main 2 years ago
2015aroras 2015aroras deleted the add-olmo-implementation branch 2 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone