nixpkgs-security-lora

42
license:apache-2.0
by
odoom
Other
OTHER
7B params
New
42 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
16GB+ RAM
Mobile
Laptop
Server
Quick Summary

AI model with specialized capabilities.

Device Compatibility

Mobile
4-6GB RAM
Laptop
16GB RAM
Server
GPU
Minimum Recommended
7GB+ RAM

Code Examples

Usage with Cloudflare Workers AIjavascript
const response = await env.AI.run(
  "@cf/mistral/mistral-7b-instruct-v0.2-lora",
  {
    messages: [
      { role: "user", content: "Fix CVE-2024-1234 in package foo..." }
    ],
    lora: "nixpkgs-security-lora"
  }
);
Usage with Transformers + PEFTpythontransformers
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
model = PeftModel.from_pretrained(model, "odoom/nixpkgs-security-lora")
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")

Deploy This Model

Production-ready deployment in minutes

Together.ai

Instant API access to this model

Fastest API

Production-ready inference API. Start free, scale to millions.

Try Free API

Replicate

One-click model deployment

Easiest Setup

Run models in the cloud with simple API. No DevOps required.

Deploy Now

Disclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.