

Using Hugging Face Code Autocomplete in VSCode to help with PowerShell and Power...
source link: http://www.virtu-al.net/2023/08/29/using-hugging-face-code-autocomplete-in-vscode-to-help-with-powershell-and-powercli-scripts/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Using Hugging Face Code Autocomplete in VSCode to help with PowerShell and PowerCLI Scripts
Whilst at VMware Explore this year I was introduced to Hugging Face Code Autocomplete plugin for Visual Studio Code as part of the SafeCoder announcement.
In the keynote demo Chris Wolf showed how SafeCoder could be used to safely complete some python code using a machine learning model which had been trained on the internal VMware code base, it gave great results and showed how using code completion can be safely used by providing an on-premises solution, SafeCoder made sure your company’s core IP or code was not sent to a public service and shared with the world whilst giving you the benefit of code assisted development.
I was intrigued by the demo and wondered how easy it would be and what kind of job the Hugging Face Code Autocomplete plugin for Visual Studio Code would do with PowerShell and specifically PowerCLI Code. Imagine having a LucD sat over your shoulder as you type, suggesting what your code should look like… well its not quite as amazing as Luc, I mean we all strive for that!
I was however impressed, below you can see a quick gif of me using it to create some comments about what I want to do it and it filling out the code as I do so, this is an awesome head start to creating your own scripts and learning.
Note: The current implementation uses the Hugging Face API and model which was trained on the internet so the data wont be 100% accurate, it will do a great job of giving you the fundamentals but rounding the edges and ensuring the script does what you need it to do will be your responsibility!

Hugging Face Code Autocomplete plugin for Visual Studio Code
Installing Hugging Face Code Autocomplete in VSCode
- Install VS Code if you don’t have it already.
- Install the VS Code plugin from here.
- Sign up for a Hugging Face account (free), you will need this for the plugin to access their API.
- Setup an API token which you can use for VS Code to access the Hugging Face API.
- In VS Code press Cmd/Ctrl+Shift+P to open VSCode command palette.
- Type: Hugging Face Code: Set API token.
- Paste your API token into the plugin.
- You are done! I normally type #PowerShell Code as my first comment to help it know that’s what i expect and not some other language.
This entry was posted in PowerShell on August 29, 2023.
Recommend
-
11
Deep LearningOverview of AutoNLP from Hugging Face with Example ProjectJune 15, 2021 12 min read What is AutoNLP and How Do You Use It? AutoNLP is an automated way to train, evaluate, and depl...
-
12
Related PostsSign up for our newsletter.Sign upchevron_rightFree ResourcesBrowse our whitepapers, e-books, case studies, and reference architecture.Ex...
-
10
How Hugging Face is tackling bias in NLP Image Credit: Peach_iStock/Getty Images ADVERTISEMENT How open API st...
-
8
a Hugging Face Space by akhaliq Space: akhali...
-
13
a Hugging Face Space by akhaliq Spaces:
-
13
Practical AI – Episode #161 OpenAI and Hugging Face tooling get Fully-Connected with Chris and Daniel...
-
10
Fresh off $2B valuation, ML platform Hugging Face touts ‘open and collaborative approach’ Image Credit: Bloom Productions/Getty Images ...
-
13
rust Featured Insights of porting Hugging Face Rust Tok...
-
9
What is PyTorch? PyTorch is a deep learning open-source TensorFlow library that is based on the well-known Torch library. It's also a Python-based library that is more commonly use...
-
13
Calling Hugging Face AI From an Oracle Database Using JavaScriptCalling Hugging Face AI From an Oracle Database Using JavaScriptAugust 22...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK