Team Ai
Modelpublic

FrameByFrame/programming-language-identification-100plus

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
1likes37downloads
config.json265 linesDownload Raw Back to onnx
1{2  "architectures": [3    "ModernBertForSequenceClassification"4  ],5  "attention_bias": false,6  "attention_dropout": 0.0,7  "bos_token_id": 50281,8  "classifier_activation": "gelu",9  "classifier_bias": false,10  "classifier_dropout": 0.0,11  "classifier_pooling": "mean",12  "cls_token_id": 50281,13  "decoder_bias": true,14  "deterministic_flash_attn": false,15  "dtype": "float16",16  "embedding_dropout": 0.0,17  "eos_token_id": 50282,18  "global_attn_every_n_layers": 3,19  "global_rope_theta": 160000.0,20  "gradient_checkpointing": false,21  "hidden_activation": "gelu",22  "hidden_size": 768,23  "id2label": {24    "0": "Julia",25    "1": "Go",26    "2": "Raku",27    "3": "Pascal",28    "4": "Perl",29    "5": "Python",30    "6": "Nim",31    "7": "J",32    "8": "C",33    "9": "Haskell",34    "10": "Mathematica/Wolfram Language",35    "11": "Kotlin",36    "12": "Java",37    "13": "Ruby",38    "14": "Racket",39    "15": "C++",40    "16": "Tcl",41    "17": "C#",42    "18": "Scala",43    "19": "Ada",44    "20": "Factor",45    "21": "Rust",46    "22": "Lua",47    "23": "D",48    "24": "Common Lisp",49    "25": "AutoHotkey",50    "26": "JavaScript",51    "27": "F#",52    "28": "Wren",53    "29": "Clojure",54    "30": "Fortran",55    "31": "PureBasic",56    "32": "OCaml",57    "33": "Awk",58    "34": "R",59    "35": "Swift",60    "36": "Forth",61    "37": "Elixir",62    "38": "Erlang",63    "39": "PowerShell",64    "40": "Groovy",65    "41": "REXX",66    "42": "Visual Basic .NET",67    "43": "PHP",68    "44": "Prolog",69    "45": "Scheme",70    "46": "AppleScript",71    "47": "COBOL",72    "48": "FreeBASIC",73    "49": "Smalltalk",74    "50": "PicoLisp",75    "51": "MATLAB",76    "52": "Oz",77    "53": "Standard ML",78    "54": "Lasso",79    "55": "Crystal",80    "56": "APL",81    "57": "Stata",82    "58": "CoffeeScript",83    "59": "Batchfile",84    "60": "jq",85    "61": "GAP",86    "62": "Red",87    "63": "Emacs Lisp",88    "64": "Eiffel",89    "65": "Fantom",90    "66": "Ring",91    "67": "Pike",92    "68": "Rebol",93    "69": "ActionScript",94    "70": "MAXScript",95    "71": "Vala",96    "72": "Dart",97    "73": "Processing",98    "74": "Ceylon",99    "75": "AutoIt",100    "76": "Io",101    "77": "M4",102    "78": "Zig",103    "79": "LFE",104    "80": "ATS",105    "81": "Logtalk",106    "82": "ABAP",107    "83": "Scilab",108    "84": "IDL",109    "85": "LabVIEW",110    "86": "ColdFusion",111    "87": "SAS",112    "88": "Haxe",113    "89": "VBA",114    "90": "BASIC",115    "91": "V",116    "92": "VBScript",117    "93": "E",118    "94": "Euphoria",119    "95": "ARM Assembly",120    "96": "Component Pascal",121    "97": "M",122    "98": "Modula-2",123    "99": "BQN",124    "100": "Befunge",125    "101": "Objective-C",126    "102": "NewLisp",127    "103": "Nemerle",128    "104": "Modula-3",129    "105": "Mercury",130    "106": "QuickBASIC"131  },132  "initializer_cutoff_factor": 2.0,133  "initializer_range": 0.02,134  "intermediate_size": 1152,135  "label2id": {136    "ABAP": 82,137    "APL": 56,138    "ARM Assembly": 95,139    "ATS": 80,140    "ActionScript": 69,141    "Ada": 19,142    "AppleScript": 46,143    "AutoHotkey": 25,144    "AutoIt": 75,145    "Awk": 33,146    "BASIC": 90,147    "BQN": 99,148    "Batchfile": 59,149    "Befunge": 100,150    "C": 8,151    "C#": 17,152    "C++": 15,153    "COBOL": 47,154    "Ceylon": 74,155    "Clojure": 29,156    "CoffeeScript": 58,157    "ColdFusion": 86,158    "Common Lisp": 24,159    "Component Pascal": 96,160    "Crystal": 55,161    "D": 23,162    "Dart": 72,163    "E": 93,164    "Eiffel": 64,165    "Elixir": 37,166    "Emacs Lisp": 63,167    "Erlang": 38,168    "Euphoria": 94,169    "F#": 27,170    "Factor": 20,171    "Fantom": 65,172    "Forth": 36,173    "Fortran": 30,174    "FreeBASIC": 48,175    "GAP": 61,176    "Go": 1,177    "Groovy": 40,178    "Haskell": 9,179    "Haxe": 88,180    "IDL": 84,181    "Io": 76,182    "J": 7,183    "Java": 12,184    "JavaScript": 26,185    "Julia": 0,186    "Kotlin": 11,187    "LFE": 79,188    "LabVIEW": 85,189    "Lasso": 54,190    "Logtalk": 81,191    "Lua": 22,192    "M": 97,193    "M4": 77,194    "MATLAB": 51,195    "MAXScript": 70,196    "Mathematica/Wolfram Language": 10,197    "Mercury": 105,198    "Modula-2": 98,199    "Modula-3": 104,200    "Nemerle": 103,201    "NewLisp": 102,202    "Nim": 6,203    "OCaml": 32,204    "Objective-C": 101,205    "Oz": 52,206    "PHP": 43,207    "Pascal": 3,208    "Perl": 4,209    "PicoLisp": 50,210    "Pike": 67,211    "PowerShell": 39,212    "Processing": 73,213    "Prolog": 44,214    "PureBasic": 31,215    "Python": 5,216    "QuickBASIC": 106,217    "R": 34,218    "REXX": 41,219    "Racket": 14,220    "Raku": 2,221    "Rebol": 68,222    "Red": 62,223    "Ring": 66,224    "Ruby": 13,225    "Rust": 21,226    "SAS": 87,227    "Scala": 18,228    "Scheme": 45,229    "Scilab": 83,230    "Smalltalk": 49,231    "Standard ML": 53,232    "Stata": 57,233    "Swift": 35,234    "Tcl": 16,235    "V": 91,236    "VBA": 89,237    "VBScript": 92,238    "Vala": 71,239    "Visual Basic .NET": 42,240    "Wren": 28,241    "Zig": 78,242    "jq": 60243  },244  "layer_norm_eps": 1e-05,245  "local_attention": 128,246  "local_rope_theta": 10000.0,247  "max_position_embeddings": 8192,248  "mlp_bias": false,249  "mlp_dropout": 0.0,250  "model_type": "modernbert",251  "norm_bias": false,252  "norm_eps": 1e-05,253  "num_attention_heads": 12,254  "num_hidden_layers": 22,255  "pad_token_id": 50283,256  "position_embedding_type": "absolute",257  "problem_type": "single_label_classification",258  "repad_logits_with_grad": false,259  "sep_token_id": 50282,260  "sparse_pred_ignore_index": -100,261  "sparse_prediction": false,262  "transformers_version": "4.57.6",263  "vocab_size": 50368264}265