Run this model with HF Jobs
Run dessertlab/offensive-powershell-CodeGPT-small on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/dessertlab/offensive-powershell-CodeGPT-small. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/dessertlab/offensive-powershell-CodeGPT-small on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/dessertlab/offensive-powershell-CodeGPT-small. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/dessertlab/offensive-powershell-CodeGPT-small. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use dessertlab/offensive-powershell-CodeGPT-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dessertlab/offensive-powershell-CodeGPT-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dessertlab/offensive-powershell-CodeGPT-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dessertlab/offensive-powershell-CodeGPT-small") model = AutoModelForCausalLM.from_pretrained("dessertlab/offensive-powershell-CodeGPT-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dessertlab/offensive-powershell-CodeGPT-small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dessertlab/offensive-powershell-CodeGPT-small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dessertlab/offensive-powershell-CodeGPT-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/dessertlab/offensive-powershell-CodeGPT-small
- SGLang
How to use dessertlab/offensive-powershell-CodeGPT-small with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "dessertlab/offensive-powershell-CodeGPT-small" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dessertlab/offensive-powershell-CodeGPT-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "dessertlab/offensive-powershell-CodeGPT-small" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dessertlab/offensive-powershell-CodeGPT-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use dessertlab/offensive-powershell-CodeGPT-small with Docker Model Runner:
docker model run hf.co/dessertlab/offensive-powershell-CodeGPT-small
Upload tokenizer
Browse filesFiles changed (6)
- added_tokens.jsonAdded+4
- merges.txtAdded
- special_tokens_map.jsonAdded+31
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+43
- vocab.jsonAdded
1234{ "<EOL>": 50000, "<|UNKNOWN|>": 50001}12345678910111213141516171819202122232425262728293031{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sep_token": "<EOL>", "unk_token": { "content": "<|UNKNOWN|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}12345678910111213141516171819202122232425262728293031323334353637383940414243{ "add_bos_token": false, "add_prefix_space": false, "bos_token": { "__type": "AddedToken", "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "clean_up_tokenization_spaces": true, "do_lower_case": false, "eos_token": { "__type": "AddedToken", "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "errors": "replace", "full_tokenizer_file": null, "model_max_length": 1000000000000000019884624838656, "pad_token": { "__type": "AddedToken", "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sep_token": "<EOL>", "tokenizer_class": "GPT2Tokenizer", "unk_token": { "__type": "AddedToken", "content": "<|UNKNOWN|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}added_tokens.jsonAdded+4
merges.txtAdded
special_tokens_map.jsonAdded+31
tokenizer.jsonAdded
tokenizer_config.jsonAdded+43
vocab.jsonAdded