CoolFace
Modelpublic

Salesforce/codegen2-1B_P

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
42likes560downloads
config.json50 linesDownload Raw Back to root
1{2  "_name_or_path": "checkpoints/codegen2-1B/",3  "activation_function": "gelu_new",4  "architectures": [5    "CodeGenForCausalLM"6  ],7  "attn_pdrop": 0.0,8  "auto_map": {9    "AutoConfig": "configuration_codegen.CodeGenConfig",10    "AutoModel": "modeling_codegen.CodeGenModel",11    "AutoModelForCausalLM": "modeling_codegen.CodeGenForCausalLM"12  },13  "bos_token_id": 1,14  "embd_pdrop": 0.0,15  "eos_token_id": 2,16  "gradient_checkpointing": false,17  "head_dim": 128,18  "initializer_range": 0.02,19  "layer_norm_epsilon": 1e-05,20  "model_type": "codegen",21  "n_ctx": 2048,22  "n_embd": 2048,23  "n_head": 16,24  "n_inner": null,25  "n_layer": 16,26  "n_positions": 2048,27  "resid_pdrop": 0.0,28  "rotary_dim": 64,29 "trust_remote_code":true,30  "scale_attn_weights": true,31  "summary_activation": null,32  "summary_first_dropout": 0.1,33  "summary_proj_to_labels": true,34  "summary_type": "cls_index",35  "summary_use_proj": true,36  "task_specific_params": {37    "text-generation": {38      "do_sample": true,39      "max_length": 50,40      "temperature": 1.041    }42  },43  "tie_word_embeddings": false,44  "tokenizer_class": "GPT2Tokenizer",45  "torch_dtype": "float32",46  "transformers_version": "4.25.1",47  "use_cache": true,48  "vocab_size": 5120049}50