Commit cea5643
authored
Register OpenAI GPT-OSS and GPT-OSS-SAFEGUARD Presets to kerashub. (#2473)
* Test GPT_OSS files through porter
* generate API and moved files to respective folders
* Fix format issues
* Add gpt_oss to preset loader and Fix format issues
* Add gpt_oss to preset loader
* generated files through 2.5-pro model
* Format fix
* Add converter, RoPE update
* Fix format
* Fix BPE tests
* Update converter
* Fix converter, checkpoints conversion and attention
* Fix the parameter count and debug code
* Add dequantization logic to converter
* Add YaRN support,Fix Serialisation,Fix dequantization
* Fixed several pytest tests
* Address gpt_oss_causal_lm tests
* Fix format issues
* Address review comments
* set start token id to None to match the HF output
* Fix test cases
* Fix test
* Fix error
* Fix
* Address all comments
* Register GPT-OSS Presets
* FIx fromat1 parent b238c7d commit cea5643
File tree
2 files changed
+53
-1
lines changed- keras_hub/src/models/gpt_oss
- tools/checkpoint_conversion
2 files changed
+53
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments