Text Classification
Transformers
Safetensors
roberta
code
programming-language-identification
text-embeddings-inference
Instructions to use pecan-anon/codebert-pecan with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pecan-anon/codebert-pecan with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="pecan-anon/codebert-pecan")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("pecan-anon/codebert-pecan") model = AutoModelForSequenceClassification.from_pretrained("pecan-anon/codebert-pecan", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from pecan-anon/codebert-pecan: direct link, hf CLI and curl.
- Browser
- Download file 13.7 kB
-
https://huggingface.co/pecan-anon/codebert-pecan/resolve/1e2a7d1c22799f6df4ef9f8b9052d289d2aa48eb/config.json
- Command line
-
hf download hf://pecan-anon/codebert-pecan@1e2a7d1c22799f6df4ef9f8b9052d289d2aa48eb/config.json
-
curl -L -o config.json https://huggingface.co/pecan-anon/codebert-pecan/resolve/1e2a7d1c22799f6df4ef9f8b9052d289d2aa48eb/config.json
13.7 kB
| { | |
| "architectures": [ | |
| "RobertaForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "NetLinx", | |
| "1": "Metal", | |
| "2": "Scilab", | |
| "3": "Xojo", | |
| "4": "WebAssembly", | |
| "5": "Zephir", | |
| "6": "Max", | |
| "7": "JSONiq", | |
| "8": "UnrealScript", | |
| "9": "JSON5", | |
| "10": "Volt", | |
| "11": "Inno-Setup", | |
| "12": "RDoc", | |
| "13": "RMarkdown", | |
| "14": "Jasmin", | |
| "15": "BlitzMax", | |
| "16": "Idris", | |
| "17": "xBase", | |
| "18": "LiveScript", | |
| "19": "Latte", | |
| "20": "ECL", | |
| "21": "NSIS", | |
| "22": "Prolog", | |
| "23": "POV-Ray-SDL", | |
| "24": "Lasso", | |
| "25": "Slash", | |
| "26": "Stan", | |
| "27": "Perl6", | |
| "28": "AppleScript", | |
| "29": "KiCad", | |
| "30": "Racket", | |
| "31": "AGS-Script", | |
| "32": "RHTML", | |
| "33": "Maple", | |
| "34": "Ninja", | |
| "35": "Pan", | |
| "36": "Matlab", | |
| "37": "Mako", | |
| "38": "Awk", | |
| "39": "LabVIEW", | |
| "40": "ATS", | |
| "41": "Xtend", | |
| "42": "Logtalk", | |
| "43": "Grammatical-Framework", | |
| "44": "Sage", | |
| "45": "Squirrel", | |
| "46": "Textile", | |
| "47": "G-code", | |
| "48": "eC", | |
| "49": "Boo", | |
| "50": "Dylan", | |
| "51": "SAS", | |
| "52": "MoonScript", | |
| "53": "QMake", | |
| "54": "Ceylon", | |
| "55": "GAMS", | |
| "56": "Cap'n-Proto", | |
| "57": "DM", | |
| "58": "Arc", | |
| "59": "Bluespec", | |
| "60": "Rouge", | |
| "61": "SourcePawn", | |
| "62": "Ren'Py", | |
| "63": "Bro", | |
| "64": "Literate-Haskell", | |
| "65": "Lex", | |
| "66": "Thrift", | |
| "67": "Oz", | |
| "68": "Clean", | |
| "69": "Mask", | |
| "70": "WebIDL", | |
| "71": "JFlex", | |
| "72": "Isabelle", | |
| "73": "EmberScript", | |
| "74": "Red", | |
| "75": "LilyPond", | |
| "76": "Brainfuck", | |
| "77": "ooc", | |
| "78": "PigLatin", | |
| "79": "FLUX", | |
| "80": "Vala", | |
| "81": "LFE", | |
| "82": "Gosu", | |
| "83": "XS", | |
| "84": "Monkey", | |
| "85": "XC", | |
| "86": "Brightscript", | |
| "87": "Ragel-in-Ruby-Host", | |
| "88": "Io", | |
| "89": "Genshi", | |
| "90": "Verilog", | |
| "91": "Literate-CoffeeScript", | |
| "92": "RenderScript", | |
| "93": "Forth", | |
| "94": "CLIPS", | |
| "95": "Pony", | |
| "96": "COBOL", | |
| "97": "Propeller-Spin", | |
| "98": "UrWeb", | |
| "99": "IGOR-Pro", | |
| "100": "Turing", | |
| "101": "Literate-Agda", | |
| "102": "PAWN", | |
| "103": "ObjDump", | |
| "104": "Uno", | |
| "105": "REALbasic", | |
| "106": "J", | |
| "107": "Component-Pascal", | |
| "108": "NetLogo", | |
| "109": "VCL", | |
| "110": "Hy", | |
| "111": "Nu", | |
| "112": "IDL", | |
| "113": "XProc", | |
| "114": "GAP", | |
| "115": "Click", | |
| "116": "Clarion", | |
| "117": "Inform-7", | |
| "118": "Parrot-Internal-Representation", | |
| "119": "LSL", | |
| "120": "AspectJ", | |
| "121": "API-Blueprint", | |
| "122": "Kit", | |
| "123": "C2hs-Haskell", | |
| "124": "Fantom", | |
| "125": "ChucK", | |
| "126": "SuperCollider", | |
| "127": "DNS-Zone", | |
| "128": "Csound", | |
| "129": "APL", | |
| "130": "CartoCSS", | |
| "131": "Tea", | |
| "132": "Ioke", | |
| "133": "LookML", | |
| "134": "Module-Management-System", | |
| "135": "Opa", | |
| "136": "Cirru", | |
| "137": "Rebol", | |
| "138": "Bison", | |
| "139": "D", | |
| "140": "Redcode", | |
| "141": "nesC", | |
| "142": "Logos", | |
| "143": "ABAP", | |
| "144": "OpenSCAD", | |
| "145": "M4", | |
| "146": "Elm", | |
| "147": "Slim", | |
| "148": "HTML+Django", | |
| "149": "YANG", | |
| "150": "ColdFusion-CFC", | |
| "151": "QML", | |
| "152": "fish", | |
| "153": "XSLT", | |
| "154": "Factor", | |
| "155": "Yacc", | |
| "156": "R", | |
| "157": "RobotFramework", | |
| "158": "Pure-Data", | |
| "159": "Scheme", | |
| "160": "Nimrod", | |
| "161": "SPARQL", | |
| "162": "PureScript", | |
| "163": "Stata", | |
| "164": "FreeMarker", | |
| "165": "AutoIt", | |
| "166": "SystemVerilog", | |
| "167": "Alloy", | |
| "168": "PureBasic", | |
| "169": "SQF", | |
| "170": "Tcl", | |
| "171": "Linker-Script", | |
| "172": "DIGITAL-Command-Language", | |
| "173": "HLSL", | |
| "174": "Mathematica", | |
| "175": "Pod", | |
| "176": "Gentoo-Ebuild", | |
| "177": "ANTLR", | |
| "178": "Modelica", | |
| "179": "edn", | |
| "180": "GraphQL", | |
| "181": "Gnuplot", | |
| "182": "Web-Ontology-Language", | |
| "183": "Org", | |
| "184": "Eagle", | |
| "185": "JSONLD", | |
| "186": "Standard-ML", | |
| "187": "Groovy-Server-Pages", | |
| "188": "Processing", | |
| "189": "AutoHotkey", | |
| "190": "XQuery", | |
| "191": "Cython", | |
| "192": "HTML+EEX", | |
| "193": "HTTP", | |
| "194": "Liquid", | |
| "195": "Eiffel", | |
| "196": "OpenCL", | |
| "197": "SaltStack", | |
| "198": "ColdFusion", | |
| "199": "Lean", | |
| "200": "desktop", | |
| "201": "Zig", | |
| "202": "Ada", | |
| "203": "RAML", | |
| "204": "Tcsh", | |
| "205": "PostScript", | |
| "206": "Mirah", | |
| "207": "MediaWiki", | |
| "208": "Agda", | |
| "209": "Papyrus", | |
| "210": "Chapel", | |
| "211": "XPages", | |
| "212": "mupad", | |
| "213": "MAXScript", | |
| "214": "Pike", | |
| "215": "Ecere-Projects", | |
| "216": "Objective-J", | |
| "217": "BlitzBasic", | |
| "218": "Octave", | |
| "219": "Cycript", | |
| "220": "Darcs-Patch", | |
| "221": "Gentoo-Eclass", | |
| "222": "FORTRAN", | |
| "223": "Julia", | |
| "224": "OCaml", | |
| "225": "CMake", | |
| "226": "TOML", | |
| "227": "Java-Server-Pages", | |
| "228": "Haxe", | |
| "229": "GLSL", | |
| "230": "Diff", | |
| "231": "HCL", | |
| "232": "Nix", | |
| "233": "Smarty", | |
| "234": "HTML+ERB", | |
| "235": "Assembly", | |
| "236": "Protocol-Buffer", | |
| "237": "Solidity", | |
| "238": "Arduino", | |
| "239": "Lua", | |
| "240": "Dockerfile", | |
| "241": "Less", | |
| "242": "TeX", | |
| "243": "Smali", | |
| "244": "Visual-Basic", | |
| "245": "CoffeeScript", | |
| "246": "Twig", | |
| "247": "Gettext-Catalog", | |
| "248": "ASP", | |
| "249": "Elixir", | |
| "250": "Smalltalk", | |
| "251": "ActionScript", | |
| "252": "Groovy", | |
| "253": "Erlang", | |
| "254": "AsciiDoc", | |
| "255": "Haml", | |
| "256": "Cucumber", | |
| "257": "SMT", | |
| "258": "Perl", | |
| "259": "Sass", | |
| "260": "Objective-C++", | |
| "261": "Pascal", | |
| "262": "Groff", | |
| "263": "F-Sharp", | |
| "264": "Handlebars", | |
| "265": "PowerShell", | |
| "266": "Cuda", | |
| "267": "Haskell", | |
| "268": "GDScript", | |
| "269": "Clojure", | |
| "270": "HTML+PHP", | |
| "271": "Graphviz-(DOT)", | |
| "272": "GAS", | |
| "273": "Batchfile", | |
| "274": "Turtle", | |
| "275": "BitBake", | |
| "276": "Stylus", | |
| "277": "Jade", | |
| "278": "Emacs-Lisp", | |
| "279": "VHDL", | |
| "280": "Common-Lisp", | |
| "281": "LLVM", | |
| "282": "Crystal", | |
| "283": "VimL", | |
| "284": "IRC-log", | |
| "285": "reStructuredText", | |
| "286": "Jupyter-Notebook", | |
| "287": "Dart", | |
| "288": "JSX", | |
| "289": "SQL", | |
| "290": "INI", | |
| "291": "Makefile", | |
| "292": "YAML", | |
| "293": "TypeScript", | |
| "294": "Markdown", | |
| "295": "C", | |
| "296": "PHP", | |
| "297": "JavaScript", | |
| "298": "C-sharp", | |
| "299": "JSON", | |
| "300": "Java", | |
| "301": "CSS", | |
| "302": "Vue", | |
| "303": "XML", | |
| "304": "CSV", | |
| "305": "Text", | |
| "306": "Unity3D-Asset", | |
| "307": "Rust", | |
| "308": "HTML", | |
| "309": "Python", | |
| "310": "SVG", | |
| "311": "Scala", | |
| "312": "Ruby", | |
| "313": "C++", | |
| "314": "Go", | |
| "315": "Kotlin", | |
| "316": "Swift", | |
| "317": "Shell", | |
| "318": "SCSS" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "ABAP": 143, | |
| "AGS-Script": 31, | |
| "ANTLR": 177, | |
| "API-Blueprint": 121, | |
| "APL": 129, | |
| "ASP": 248, | |
| "ATS": 40, | |
| "ActionScript": 251, | |
| "Ada": 202, | |
| "Agda": 208, | |
| "Alloy": 167, | |
| "AppleScript": 28, | |
| "Arc": 58, | |
| "Arduino": 238, | |
| "AsciiDoc": 254, | |
| "AspectJ": 120, | |
| "Assembly": 235, | |
| "AutoHotkey": 189, | |
| "AutoIt": 165, | |
| "Awk": 38, | |
| "Batchfile": 273, | |
| "Bison": 138, | |
| "BitBake": 275, | |
| "BlitzBasic": 217, | |
| "BlitzMax": 15, | |
| "Bluespec": 59, | |
| "Boo": 49, | |
| "Brainfuck": 76, | |
| "Brightscript": 86, | |
| "Bro": 63, | |
| "C": 295, | |
| "C++": 313, | |
| "C-sharp": 298, | |
| "C2hs-Haskell": 123, | |
| "CLIPS": 94, | |
| "CMake": 225, | |
| "COBOL": 96, | |
| "CSS": 301, | |
| "CSV": 304, | |
| "Cap'n-Proto": 56, | |
| "CartoCSS": 130, | |
| "Ceylon": 54, | |
| "Chapel": 210, | |
| "ChucK": 125, | |
| "Cirru": 136, | |
| "Clarion": 116, | |
| "Clean": 68, | |
| "Click": 115, | |
| "Clojure": 269, | |
| "CoffeeScript": 245, | |
| "ColdFusion": 198, | |
| "ColdFusion-CFC": 150, | |
| "Common-Lisp": 280, | |
| "Component-Pascal": 107, | |
| "Crystal": 282, | |
| "Csound": 128, | |
| "Cucumber": 256, | |
| "Cuda": 266, | |
| "Cycript": 219, | |
| "Cython": 191, | |
| "D": 139, | |
| "DIGITAL-Command-Language": 172, | |
| "DM": 57, | |
| "DNS-Zone": 127, | |
| "Darcs-Patch": 220, | |
| "Dart": 287, | |
| "Diff": 230, | |
| "Dockerfile": 240, | |
| "Dylan": 50, | |
| "ECL": 20, | |
| "Eagle": 184, | |
| "Ecere-Projects": 215, | |
| "Eiffel": 195, | |
| "Elixir": 249, | |
| "Elm": 146, | |
| "Emacs-Lisp": 278, | |
| "EmberScript": 73, | |
| "Erlang": 253, | |
| "F-Sharp": 263, | |
| "FLUX": 79, | |
| "FORTRAN": 222, | |
| "Factor": 154, | |
| "Fantom": 124, | |
| "Forth": 93, | |
| "FreeMarker": 164, | |
| "G-code": 47, | |
| "GAMS": 55, | |
| "GAP": 114, | |
| "GAS": 272, | |
| "GDScript": 268, | |
| "GLSL": 229, | |
| "Genshi": 89, | |
| "Gentoo-Ebuild": 176, | |
| "Gentoo-Eclass": 221, | |
| "Gettext-Catalog": 247, | |
| "Gnuplot": 181, | |
| "Go": 314, | |
| "Gosu": 82, | |
| "Grammatical-Framework": 43, | |
| "GraphQL": 180, | |
| "Graphviz-(DOT)": 271, | |
| "Groff": 262, | |
| "Groovy": 252, | |
| "Groovy-Server-Pages": 187, | |
| "HCL": 231, | |
| "HLSL": 173, | |
| "HTML": 308, | |
| "HTML+Django": 148, | |
| "HTML+EEX": 192, | |
| "HTML+ERB": 234, | |
| "HTML+PHP": 270, | |
| "HTTP": 193, | |
| "Haml": 255, | |
| "Handlebars": 264, | |
| "Haskell": 267, | |
| "Haxe": 228, | |
| "Hy": 110, | |
| "IDL": 112, | |
| "IGOR-Pro": 99, | |
| "INI": 290, | |
| "IRC-log": 284, | |
| "Idris": 16, | |
| "Inform-7": 117, | |
| "Inno-Setup": 11, | |
| "Io": 88, | |
| "Ioke": 132, | |
| "Isabelle": 72, | |
| "J": 106, | |
| "JFlex": 71, | |
| "JSON": 299, | |
| "JSON5": 9, | |
| "JSONLD": 185, | |
| "JSONiq": 7, | |
| "JSX": 288, | |
| "Jade": 277, | |
| "Jasmin": 14, | |
| "Java": 300, | |
| "Java-Server-Pages": 227, | |
| "JavaScript": 297, | |
| "Julia": 223, | |
| "Jupyter-Notebook": 286, | |
| "KiCad": 29, | |
| "Kit": 122, | |
| "Kotlin": 315, | |
| "LFE": 81, | |
| "LLVM": 281, | |
| "LSL": 119, | |
| "LabVIEW": 39, | |
| "Lasso": 24, | |
| "Latte": 19, | |
| "Lean": 199, | |
| "Less": 241, | |
| "Lex": 65, | |
| "LilyPond": 75, | |
| "Linker-Script": 171, | |
| "Liquid": 194, | |
| "Literate-Agda": 101, | |
| "Literate-CoffeeScript": 91, | |
| "Literate-Haskell": 64, | |
| "LiveScript": 18, | |
| "Logos": 142, | |
| "Logtalk": 42, | |
| "LookML": 133, | |
| "Lua": 239, | |
| "M4": 145, | |
| "MAXScript": 213, | |
| "Makefile": 291, | |
| "Mako": 37, | |
| "Maple": 33, | |
| "Markdown": 294, | |
| "Mask": 69, | |
| "Mathematica": 174, | |
| "Matlab": 36, | |
| "Max": 6, | |
| "MediaWiki": 207, | |
| "Metal": 1, | |
| "Mirah": 206, | |
| "Modelica": 178, | |
| "Module-Management-System": 134, | |
| "Monkey": 84, | |
| "MoonScript": 52, | |
| "NSIS": 21, | |
| "NetLinx": 0, | |
| "NetLogo": 108, | |
| "Nimrod": 160, | |
| "Ninja": 34, | |
| "Nix": 232, | |
| "Nu": 111, | |
| "OCaml": 224, | |
| "ObjDump": 103, | |
| "Objective-C++": 260, | |
| "Objective-J": 216, | |
| "Octave": 218, | |
| "Opa": 135, | |
| "OpenCL": 196, | |
| "OpenSCAD": 144, | |
| "Org": 183, | |
| "Oz": 67, | |
| "PAWN": 102, | |
| "PHP": 296, | |
| "POV-Ray-SDL": 23, | |
| "Pan": 35, | |
| "Papyrus": 209, | |
| "Parrot-Internal-Representation": 118, | |
| "Pascal": 261, | |
| "Perl": 258, | |
| "Perl6": 27, | |
| "PigLatin": 78, | |
| "Pike": 214, | |
| "Pod": 175, | |
| "Pony": 95, | |
| "PostScript": 205, | |
| "PowerShell": 265, | |
| "Processing": 188, | |
| "Prolog": 22, | |
| "Propeller-Spin": 97, | |
| "Protocol-Buffer": 236, | |
| "Pure-Data": 158, | |
| "PureBasic": 168, | |
| "PureScript": 162, | |
| "Python": 309, | |
| "QML": 151, | |
| "QMake": 53, | |
| "R": 156, | |
| "RAML": 203, | |
| "RDoc": 12, | |
| "REALbasic": 105, | |
| "RHTML": 32, | |
| "RMarkdown": 13, | |
| "Racket": 30, | |
| "Ragel-in-Ruby-Host": 87, | |
| "Rebol": 137, | |
| "Red": 74, | |
| "Redcode": 140, | |
| "Ren'Py": 62, | |
| "RenderScript": 92, | |
| "RobotFramework": 157, | |
| "Rouge": 60, | |
| "Ruby": 312, | |
| "Rust": 307, | |
| "SAS": 51, | |
| "SCSS": 318, | |
| "SMT": 257, | |
| "SPARQL": 161, | |
| "SQF": 169, | |
| "SQL": 289, | |
| "SVG": 310, | |
| "Sage": 44, | |
| "SaltStack": 197, | |
| "Sass": 259, | |
| "Scala": 311, | |
| "Scheme": 159, | |
| "Scilab": 2, | |
| "Shell": 317, | |
| "Slash": 25, | |
| "Slim": 147, | |
| "Smali": 243, | |
| "Smalltalk": 250, | |
| "Smarty": 233, | |
| "Solidity": 237, | |
| "SourcePawn": 61, | |
| "Squirrel": 45, | |
| "Stan": 26, | |
| "Standard-ML": 186, | |
| "Stata": 163, | |
| "Stylus": 276, | |
| "SuperCollider": 126, | |
| "Swift": 316, | |
| "SystemVerilog": 166, | |
| "TOML": 226, | |
| "Tcl": 170, | |
| "Tcsh": 204, | |
| "TeX": 242, | |
| "Tea": 131, | |
| "Text": 305, | |
| "Textile": 46, | |
| "Thrift": 66, | |
| "Turing": 100, | |
| "Turtle": 274, | |
| "Twig": 246, | |
| "TypeScript": 293, | |
| "Unity3D-Asset": 306, | |
| "Uno": 104, | |
| "UnrealScript": 8, | |
| "UrWeb": 98, | |
| "VCL": 109, | |
| "VHDL": 279, | |
| "Vala": 80, | |
| "Verilog": 90, | |
| "VimL": 283, | |
| "Visual-Basic": 244, | |
| "Volt": 10, | |
| "Vue": 302, | |
| "Web-Ontology-Language": 182, | |
| "WebAssembly": 4, | |
| "WebIDL": 70, | |
| "XC": 85, | |
| "XML": 303, | |
| "XPages": 211, | |
| "XProc": 113, | |
| "XQuery": 190, | |
| "XS": 83, | |
| "XSLT": 153, | |
| "Xojo": 3, | |
| "Xtend": 41, | |
| "YAML": 292, | |
| "YANG": 149, | |
| "Yacc": 155, | |
| "Zephir": 5, | |
| "Zig": 201, | |
| "desktop": 200, | |
| "eC": 48, | |
| "edn": 179, | |
| "fish": 152, | |
| "mupad": 212, | |
| "nesC": 141, | |
| "ooc": 77, | |
| "reStructuredText": 285, | |
| "xBase": 17 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "roberta", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "output_past": true, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "transformers_version": "4.57.6", | |
| "type_vocab_size": 1, | |
| "use_cache": true, | |
| "vocab_size": 50265 | |
| } | |