Text Generation
PEFT
Safetensors
code
English
security
cybersecurity
secure-coding
ai-security
owasp
code-generation
lora
fine-tuned
securecode
conversational
Run this model with HF Jobs
Run scthornton/granite-20b-code-securecode 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 to fine-tune https://huggingface.co/scthornton/granite-20b-code-securecode. 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/scthornton/granite-20b-code-securecode 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/scthornton/granite-20b-code-securecode. 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/scthornton/granite-20b-code-securecode. 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 scthornton/granite-20b-code-securecode with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use scthornton/granite-20b-code-securecode with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("ibm-granite/granite-20b-code-instruct-8k") model = PeftModel.from_pretrained(base_model, "scthornton/granite-20b-code-securecode") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 411
Browse filesFiles changed (3)
28 unmodified lines29303132333435363728 unmodified lines"rank_pattern": {},"revision": null,"target_modules": ["mlp.c_proj","attn.c_attn","attn.c_proj","mlp.c_fc"],"target_parameters": null,28 unmodified lines29303132333435363728 unmodified lines"rank_pattern": {},"revision": null,"target_modules": ["attn.c_attn","attn.c_proj","mlp.c_proj","mlp.c_fc"],"target_parameters": null,
123version https://git-lfs.github.com/spec/v1oid sha256:1a44825e85a4250d4f3f938f4ba8f73e1630bebe8f36eb3395ccc390b9232853size 143610512123version https://git-lfs.github.com/spec/v1oid sha256:175a33b8d7dd300f52b5b53a7236da3f7969479353f36a84bbfe75b8e97894f6size 143610512
123version https://git-lfs.github.com/spec/v1oid sha256:8235488be59bf3fd0161c7b433cebdef0a21ee6ed0d25ce0a1eed891f0042f8fsize 5905123version https://git-lfs.github.com/spec/v1oid sha256:c13774db713efa857b508e475269db55ea40b39fa5cc6918a9b25bbec1d16eefsize 5329
adapter_config.json+1-1
adapter_model.safetensors+1-1
training_args.bin+2-2