CoolFace
Modelpublic

nilcars/microsoft_vscode_model

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes13downloads
Model Card

SetFit with sentence-transformers/all-mpnet-base-v2

This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/all-mpnet-base-v2 as the Sentence Transformer embedding model. A LogisticRegression instance is used for classification.

The model has been trained using an efficient few-shot learning technique that involves:

  1. 1.Fine-tuning a Sentence Transformer with contrastive learning.
  2. 2.Training a classification head with features from the fine-tuned Sentence Transformer.

Model Details

Model Description

Model Sources

Model Labels

LabelExamples
feature<ul><li>'Add Accessibility View and Accessibility Help Menu for Copilot Inline Suggestions Testing #186214\r\n\r\nIf you already have an issue for future plans feel free to close this one.\r\nI think the Copilot Inline (Ghost Text) Suggestions could also profit from the Accessibility View. Currently users are depending on the Copilot View on the side which might get deprecated in the future. And I think we need a native solution for this, so IntelliCode also profits.\r\nI am not sure how exactly to integrate this with the Inline Suggestion Hover.\r\n\r\nA potential start would be. Whenever there is an Inline Suggestion, we play an audio cue (as we do today), and a user can open Accessibility View to inspect the exact suggestion.\r\n\r\nfyi @hediet\r\n'</li><li>'Windows is ignore terminal titles unless they look like paths From @NoelAbrahams in https://github.com/microsoft/vscode/issues/172821#issuecomment-1712935578\n\n> I\'ve been trying to programmatically set the title of a bash terminal without success, and glad that I chanced upon this issue.\n> \n> Here is the repro:\n> \n> System: Windows 11.\n> Git Bash installed.\n> VSCode version: 1.82.0\n> \n> VSCode Workspace Settings:\n> \n> image\n> \n> \n> .bashrc\n> ``shell\n> echo -en "\\\\033]0;New terminal title\\\\a"\n> `\n> \n> The title of the bash terminal window remains stubbornly unchanged as bash myworkspacefolder`.\n> \n> I\'m assuming this issue will fix my use case.\n> \n> Thanks\n\n---\n\nThis section is setting it to undefined:\n\nhttps://github.com/microsoft/vscode/blob/41e940f76f5deda197bc5930b044c55607ba1cbc/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts#L1933-L1946\n\nWe want to keep the path trimming behavior above, but only when it looks like a path.'</li><li>"Toggle Inline Diff not discoverable in inline chat Followup to https://github.com/microsoft/vscode/issues/185040#issuecomment-1612399427\r\n\r\nI spent quite some time messing with the inline chat preview mode setting to get the diff to appear, without success. It didn't occur to me to look in the Discard dropdown for the Toggle Inline Diff action, since I don't associate diffing with discarding. Have we considered surfacing this another way, maybe as a separate icon or through a keybinding with some helper text below the result?"</li></ul>
question<ul><li>'error \nType: <b>Bug</b>\n\n\n\nUser\nMicrosoft Windows [Versión 10.0.22621.1992]\n(c) Microsoft Corporation. Todos los derechos reservados.\n\nC:\\\\Users\\\\primo\\\\OneDrive\\\\Escritorio\\\\otro\\\\ClonTwitter>rails s\n=> Booting Puma\n=> Rails 7.0.6 application starting in development \n=> Run bin/rails server --help for more startup options\n* SIGUSR2 not implemented, signal based restart unavailable!\n SIGUSR1 not implemented, signal based restart unavailable!\n* SIGHUP not implemented, signal based logs reopening unavailable!\nPuma starting in single mode...\n Version 5.0.0 (ruby 3.1.3-p185), codename: Spoony Bard\n Min threads: 5, max threads: 5\n Environment: development\nExiting\nC:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/puma/binder.rb:242:in initialize\': Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2) for "127.0.0.1" port 3000 (Errno::EADDRINUSE)\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/puma/binder.rb:242:in new\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/puma/binder.rb:242:in add_tcp_listener\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/puma/binder.rb:236:in block in addtcplistener\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/puma/binder.rb:235:in each\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/puma/binder.rb:235:in addtcplistener\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/puma/binder.rb:122:in block in parse\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/puma/binder.rb:106:in each\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/puma/binder.rb:106:in parse\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/puma/runner.rb:137:in loadandbind\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/puma/single.rb:43:in run\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/puma/launcher.rb:171:in run\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/puma-5.0.0/lib/rack/handler/puma.rb:71:in run\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rack-2.2.7/lib/rack/server.rb:327:in start\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/railties-7.0.6/lib/rails/commands/server/servercommand.rb:38:in `start\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/railties-7.0.6/lib/rails/commands/server/servercommand.rb:143:in block in perform\'\n from <internal:kernel>:90:in tap\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/railties-7.0.6/lib/rails/commands/server/servercommand.rb:134:in `perform\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/thor-1.2.2/lib/thor/command.rb:27:in `run\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invokecommand\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/thor-1.2.2/lib/thor.rb:392:in dispatch\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/railties-7.0.6/lib/rails/command/base.rb:87:in perform\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/railties-7.0.6/lib/rails/command.rb:48:in invoke\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/railties-7.0.6/lib/rails/commands.rb:18:in <main>\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/loadpathcache/coreext/kernelrequire.rb:32:in require\'\n from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require\'\n from bin/rails:4:in `<main>\'\n\nVS Code version: Code 1.80.2 (2ccd690cbff1569e4a83d7c43d45101f817401dc, 2023-07-27T20:40:28.909Z)\nOS version: Windows_NT x64 10.0.22621\nModes:\n\n<details>\n<summary>System Info</summary>\n\nItemValue\n------\nCPUsIntel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2592)\nGPU Status2dcanvas: enabled<br>canvasooprasterization: disabledoff<br>directrenderingdisplaycompositor: disabledoffok<br>gpucompositing: enabled<br>multiplerasterthreads: enabledon<br>opengl: enabledon<br>rasterization: enabled<br>rawdraw: disabledoffok<br>videodecode: enabled<br>videoencode: enabled<br>vulkan: disabledoff<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled\nLoad (avg)undefined\nMemory (System)15.88GB (8.85GB free)\nProcess ArgvC:\\\\\\\\Users\\\\\\\\primo\\\\\\\\OneDrive\\\\\\\\Escritorio\\\\\\\\ejercitando --crash-reporter-id ddbab503-a4a8-47c1-aa4e-da7cea102e39\nScreen Readerno\nVM0%\n</details><details><summary>Extensions (22)</summary>\n\nExtensionAuthor (truncated)Version\n---------\nrails-partialaki0.3.4\nruby-and-rails-snippetsCja1.0.0\ncodespacesGit1.14.14\nremotehubGit0.60.0\nvscode-github-actionsgit0.25.8\nvscode-pull-request-githubGit0.68.1\nbeautifyHoo1.5.0\nrails-snippetsHri1.0.8\nvscode-peacockjoh4.2.2\nvscode-language-pack-esMS-1.80.2023071209\nremote-wslms-0.80.2\nazure-reposms-0.36.0\nlive-serverms-0.4.9\nremote-repositoriesms-0.38.1\nindent-rainbowode8.3.1\nsqlite-viewerqwt0.2.5\nvscode-thunder-clientran2.10.0\nrubyreb0.28.1\nLiveServerrit5.7.9\ndocxreaderSha1.0.0\nvscode-iconsvsc12.4.0\nvscode-rubywin0.28.0\n\n\n</details><details>\n<summary>A/B Experiments</summary>\n\n``\nvsliv368cf:30146710\nvsreu685:30147344\npython383cf:30185419\nvspor879:30202332\nvspor708:30202333\nvspor363:30204092\nvslsvsres303:30308271\nvserr242:30382549\npythontb:30283811\nvsjup518:30340749\npythonptprofiler:30281270\nvshan820:30294714\nvstes263:30335439\nvscorecescf:30445987\nvscod805:30301674\nbinariesv615:30325510\nbridge0708:30335490\nbridge0723:30353136\nvsaa593:30376534\npythonvs932:30410667\nvsclangdc:30486549\nc4g48928:30535728\ndsvsc012cf:30540253\npynewext54:30695312\nazure-dev_surveyone:30548225\nvsccc:30803844\n282f8724:30602487\n89544117:30613380\n2i9eh265:30646982\nshowlangstatbar:30737416\nvsctsb:30748421\npythonfmttext:30731395\npythoncmvfstrcf:30756944\n9b8hh234:30694863\nfixshowwlkth:30771522\nshowindicator:30805244\npythongtdpath:30769146\ni26e3531:30792625\ngsofb:30804716\npythonnosmt12:30797651\npythonidxptcf:30805731\npythonnoceb:30805159\ne537b577:30795824\ndsvsc013:30795093\ndsvsc014:30804076\n\n``\n\n</details>\n\n<!-- generated by issue reporter -->'</li><li>"Markdown files doesn't show as expected Type: <b>Feature Request</b>\r\n\r\nI'm testing IntelliJ after using VS Code for a year and I've noticed that md-files display more like I expect in IntelliJ. That's a pitty. Both are not opimal though since marked lists are not very visible i IntelliJ and absent in VS code.\r\n\r\nhttps://www.markdownguide.org/cheat-sheet/\r\n\r\nExample\r\n- [x] Write the press release\r\n- [ ] Update the website\r\n- [ ] Contact the media\r\n\r\nDefinition lists\r\n: definition\r\n\r\nVS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)\r\nOS version: WindowsNT x64 10.0.22621\r\nModes:\r\n\r\n\r\n<!-- generated by issue reporter -->"</li><li>"Can't connect emulators \nType: <b>Bug</b>\n\nI have tries all posible answers but no luck. Path; re-installation, etc. I can't test my apps. I have windows 10 home edition.\n\nVS Code version: Code 1.81.0 (6445d93c81ebe42c4cbd7a60712e0b17d9463e97, 2023-08-02T12:37:13.485Z)\nOS version: WindowsNT x64 10.0.19045\nModes:\n\n<details>\n<summary>System Info</summary>\n\nItemValue\n------\nCPUsIntel(R) Core(TM) i5-4210U CPU @ 1.70GHz (4 x 2394)\nGPU Status2dcanvas: enabled<br>canvasooprasterization: disabledoff<br>directrenderingdisplaycompositor: disabledoffok<br>gpucompositing: enabled<br>multiplerasterthreads: enabledon<br>opengl: enabledon<br>rasterization: enabled<br>rawdraw: disabledoffok<br>videodecode: enabled<br>videoencode: enabled<br>vulkan: disabledoff<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled\nLoad (avg)undefined\nMemory (System)11.91GB (6.88GB free)\nProcess Argv--crash-reporter-id 77e77cea-893a-42b9-ad6c-1c3dd2e42ab1\nScreen Readerno\nVM0%\n</details><details><summary>Extensions (4)</summary>\n\nExtensionAuthor (truncated)Version\n---------\ndart-codeDar3.70.0\nflutterDar3.70.0\nemulateDie1.6.0\ngitlenseam14.1.1\n\n\n</details><details>\n<summary>A/B Experiments</summary>\n\n``\nvsliv368cf:30146710\nvsreu685:30147344\npython383:30185418\nvspor879:30202332\nvspor708:30202333\nvspor363:30204092\nvswsl492cf:30256860\nvslsvsres303:30308271\nvserr242:30382549\npythontb:30283811\nvsjup518:30340749\npythonptprofiler:30281270\nvshan820:30294714\nvstes263cf:30335440\nvscorecescf:30445987\nvscod805:30301674\nbinariesv615:30325510\nbridge0708:30335490\nbridge0723:30353136\nvsaa593cf:30376535\npythonvs932:30410667\npy29gd2263:30792226\nvsclangdf:30486550\nc4g48928:30535728\ndsvsc012:30540252\npynewext54:30695312\nazure-dev_surveyonecf:30548226\nvscccc:30803845\n2e4cg342:30602488\n89544117:30613380\na9j8j154:30646983\nshowlangstatbar:30737416\nvsctsb:30748421\n03d35959:30757346\npythonfmttext:30731395\npythoncmv:30756943\nfixshowwlkth:30771522\nshowindicator:30805244\npythongtdpath:30769146\ni26e3531:30792625\ngsofb:30804716\npythonnosmt12:30797651\npythonidxpt:30805730\npythonnoceb:30805159\ne537b577:30795824\ndsvsc013:30795093\ndsvsc014:30804076\n\n``\n\n</details>\n\n<!-- generated by issue reporter -->"</li></ul>
bug<ul><li>'Confusing accessibility help message in an editor 1. Open settings.json \n2. Run Open Accessibility Help\n3. See this message \n4. I don\'t really understand what "Disable the aria hint label to open this" means\n\nImage\n\n'</li><li>'I cannot click on the left hand side to expand: I cannot click on the left hand side to expand:\r\n\r\nimage\r\n\r\nAlso, is the hover color themable?\r\n\r\nOriginally posted by @bpasero in https://github.com/microsoft/vscode/issues/185781#issuecomment-1697638159\r\n '</li><li>'Clicking on search result sets the selection in the cell and not in the output Testing #191488\n\n open https://github.com/donnemartin/data-science-ipython-notebooks\n enable "search.experimental.closedNotebookRichContentResults": true\n search for `[1, 2, 3, 4, 5]`\n click on a result in 02.08-Sorting.ipynb\n* observe the selection is set on the input code and not on the output\n\n\n\n\nhttps://github.com/microsoft/vscode/assets/5047891/bdce58d0-66b1-48c6-91e2-283cccffcc85\n\n\n\n\n``\nVersion: 1.82.0-insider\nCommit: ebd67244fb2da33ab078bb2baa96106fda29f336\nDate: 2023-08-29T05:48:32.218Z\nElectron: 25.5.0\nElectronBuildId: 23084831\nChromium: 114.0.5735.289\nNode.js: 18.15.0\nV8: 11.4.183.29-electron.0\nOS: Darwin arm64 22.6.0\n``'</li></ul>

Uses

Direct Use for Inference

First install the SetFit library:

bash
pip install setfit

Then you can load this model and run inference.

python
from setfit import SetFitModel

# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("setfit_model_id")
# Run inference
preds = model("Notebook toolbar foreground color cannot be modified by custom styles: The unavailable foreground color has been marked with a red arrow, please see the image


Expected behavior:
Notebook toolbar foreground color can be modified through custom styles.

Unexpected behavior:
Notebook toolbar foreground color cannot be modified through custom styles.

VS Code Version: 1.81 | 1.82
OS Version: Windows10
")

<!--

Downstream Use

List how someone could finetune this model on their own dataset. -->

<!--

Out-of-Scope Use

List how the model may foreseeably be misused and address what users ought not to do with the model. -->

<!--

Bias, Risks and Limitations

What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model. -->

<!--

Recommendations

What are recommendations with respect to the foreseeable issues? For example, filtering explicit content. -->

Training Details

Training Set Metrics

Training setMinMedianMax
Word count5118.45671482
LabelTraining Sample Count
bug200
feature200
question200

Training Hyperparameters

  • batch_size: (16, 2)
  • num_epochs: (1, 1)
  • max_steps: -1
  • sampling_strategy: oversampling
  • num_iterations: 20
  • bodylearningrate: (2e-05, 1e-05)
  • headlearningrate: 0.01
  • loss: CosineSimilarityLoss
  • distancemetric: cosinedistance
  • margin: 0.25
  • endtoend: False
  • use_amp: False
  • warmup_proportion: 0.1
  • seed: 42
  • evalmaxsteps: -1
  • loadbestmodelatend: False

Training Results

EpochStepTraining LossValidation Loss
0.000710.2896-
0.0067100.262-
0.0133200.2299-
0.02300.2345-
0.0267400.235-
0.0333500.2213-
0.04600.3084-
0.0467700.2107-
0.0533800.1596-
0.06900.1916-
0.06671000.2366-
0.07331100.1513-
0.081200.1281-
0.08671300.2217-
0.09331400.1859-
0.11500.1835-
0.10671600.1312-
0.11331700.1415-
0.121800.1287-
0.12671900.1377-
0.13332000.1116-
0.142100.0769-
0.14672200.0548-
0.15332300.0647-
0.162400.0348-
0.16672500.0165-
0.17332600.0043-
0.182700.0038-
0.18672800.0673-
0.19332900.0458-
0.23000.0048-
0.20673100.0054-
0.21333200.0019-
0.223300.0052-
0.22673400.0103-
0.23333500.0163-
0.243600.0022-
0.24673700.0009-
0.25333800.0006-
0.263900.001-
0.26674000.0011-
0.27334100.0005-
0.284200.0007-
0.28674300.0006-
0.29334400.0005-
0.34500.0012-
0.30674600.0006-
0.31334700.0004-
0.324800.0006-
0.32674900.0009-
0.33335000.001-
0.345100.0003-
0.34675200.0003-
0.35335300.0005-
0.365400.0002-
0.36675500.0004-
0.37335600.0603-
0.385700.0014-
0.38675800.0007-
0.39335900.0005-
0.46000.0004-
0.40676100.0053-
0.41336200.0002-
0.426300.0002-
0.42676400.0008-
0.43336500.0001-
0.446600.0002-
0.44676700.0001-
0.45336800.0002-
0.466900.0002-
0.46677000.0001-
0.47337100.0003-
0.487200.0001-
0.48677300.0001-
0.49337400.0002-
0.57500.0001-
0.50677600.0002-
0.51337700.0002-
0.527800.0001-
0.52677900.0001-
0.53338000.0001-
0.548100.0001-
0.54678200.0002-
0.55338300.0001-
0.568400.0001-
0.56678500.0001-
0.57338600.0002-
0.588700.0001-
0.58678800.0002-
0.59338900.0002-
0.69000.0002-
0.60679100.0001-
0.61339200.0001-
0.629300.0001-
0.62679400.0001-
0.63339500.0001-
0.649600.0001-
0.64679700.0001-
0.65339800.0001-
0.669900.0001-
0.666710000.0001-
0.673310100.0001-
0.6810200.0001-
0.686710300.0001-
0.693310400.0001-
0.710500.0001-
0.706710600.0002-
0.713310700.0001-
0.7210800.0001-
0.726710900.0001-
0.733311000.0001-
0.7411100.0002-
0.746711200.0001-
0.753311300.0001-
0.7611400.0001-
0.766711500.0001-
0.773311600.0001-
0.7811700.0001-
0.786711800.0001-
0.793311900.0002-
0.812000.0001-
0.806712100.0001-
0.813312200.0001-
0.8212300.0001-
0.826712400.0-
0.833312500.0-
0.8412600.0002-
0.846712700.0001-
0.853312800.0001-
0.8612900.0001-
0.866713000.0001-
0.873313100.0001-
0.8813200.0001-
0.886713300.0-
0.893313400.0001-
0.913500.0001-
0.906713600.0001-
0.913313700.0001-
0.9213800.0001-
0.926713900.0001-
0.933314000.0001-
0.9414100.0-
0.946714200.0001-
0.953314300.0001-
0.9614400.0001-
0.966714500.0001-
0.973314600.0001-
0.9814700.0001-
0.986714800.0001-
0.993314900.0001-
1.015000.0001-

Framework Versions

  • Python: 3.10.12
  • SetFit: 1.0.3
  • Sentence Transformers: 3.0.1
  • Transformers: 4.39.0
  • PyTorch: 2.3.0+cu121
  • Datasets: 2.20.0
  • Tokenizers: 0.15.2

Citation

BibTeX

bibtex
@article{https://doi.org/10.48550/arxiv.2209.11055,
    doi = {10.48550/ARXIV.2209.11055},
    url = {https://arxiv.org/abs/2209.11055},
    author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
    keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
    title = {Efficient Few-Shot Learning Without Prompts},
    publisher = {arXiv},
    year = {2022},
    copyright = {Creative Commons Attribution 4.0 International}
}

<!--

Glossary

Clearly define terms in order to be accessible across audiences. -->

<!--

Model Card Authors

Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction. -->

<!--

Model Card Contact

Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors. -->