Model

ui-models/ui-models-gpt2

ui-models: add gpt2 config, tokenizer and safetensors weights

ui-models committed on October 21, 2026

8c5e064b224dfbf12701864feeb1d820d5a75959Parent d0a1bd2Browse files

7 files changed+38 -0

config.json

Added+31 -0
Lines 0 to 0 become lines 1 to 31
@@ -0,0 +1,31 @@
1Added: {
2Added: "activation_function": "gelu_new",
3Added: "architectures": [
4Added: "GPT2LMHeadModel"
5Added: ],
6Added: "attn_pdrop": 0.1,
7Added: "bos_token_id": 50256,
8Added: "embd_pdrop": 0.1,
9Added: "eos_token_id": 50256,
10Added: "initializer_range": 0.02,
11Added: "layer_norm_epsilon": 1e-05,
12Added: "model_type": "gpt2",
13Added: "n_ctx": 1024,
14Added: "n_embd": 768,
15Added: "n_head": 12,
16Added: "n_layer": 12,
17Added: "n_positions": 1024,
18Added: "resid_pdrop": 0.1,
19Added: "summary_activation": null,
20Added: "summary_first_dropout": 0.1,
21Added: "summary_proj_to_labels": true,
22Added: "summary_type": "cls_index",
23Added: "summary_use_proj": true,
24Added: "task_specific_params": {
25Added: "text-generation": {
26Added: "do_sample": true,
27Added: "max_length": 50
28Added: }
29Added: },
30Added: "vocab_size": 50257
31Added: }(no newline at end of file)

generation_config.json

Added+6 -0
Lines 0 to 0 become lines 1 to 6
@@ -0,0 +1,6 @@
1Added: {
2Added: "bos_token_id": 50256,
3Added: "eos_token_id": 50256,
4Added: "transformers_version": "4.26.0.dev0",
5Added: "_from_model_config": true
6Added: }

merges.txt

Added

This file is too large to display.

model.safetensors

Added

Large (LFS-tracked) file content changed — 523 MB

tokenizer.json

Added

Large (LFS-tracked) file content changed — 1.3 MB

tokenizer_config.json

Added+1 -0
Lines 0 to 0 become lines 1 to 1
@@ -0,0 +1,1 @@
1Added: {"model_max_length": 1024}(no newline at end of file)

vocab.json

Added

This file is too large to display.