Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ramitha2002
/
SecFix-CVE-Remediation

Text Generation
PEFT
Safetensors
Transformers
lora
cybersecurity
vulnerability-remediation
cve
conversational
Model card Files Files and versions
xet
Community

Instructions to use ramitha2002/SecFix-CVE-Remediation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use ramitha2002/SecFix-CVE-Remediation with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("fdtn-ai/Foundation-Sec-8B-Instruct")
    model = PeftModel.from_pretrained(base_model, "ramitha2002/SecFix-CVE-Remediation")
  • Transformers

    How to use ramitha2002/SecFix-CVE-Remediation with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="ramitha2002/SecFix-CVE-Remediation")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("ramitha2002/SecFix-CVE-Remediation", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use ramitha2002/SecFix-CVE-Remediation with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "ramitha2002/SecFix-CVE-Remediation"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "ramitha2002/SecFix-CVE-Remediation",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/ramitha2002/SecFix-CVE-Remediation
  • SGLang

    How to use ramitha2002/SecFix-CVE-Remediation 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 "ramitha2002/SecFix-CVE-Remediation" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "ramitha2002/SecFix-CVE-Remediation",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    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 "ramitha2002/SecFix-CVE-Remediation" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "ramitha2002/SecFix-CVE-Remediation",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use ramitha2002/SecFix-CVE-Remediation with Docker Model Runner:

    docker model run hf.co/ramitha2002/SecFix-CVE-Remediation
SecFix-CVE-Remediation
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
ramitha2002's picture
ramitha2002
Update readme
908e92d verified 15 days ago
  • .gitattributes
    1.57 kB
    Upload SecFix LoRA adapter 15 days ago
  • README.md
    8.64 kB
    Update readme 15 days ago
  • adapter_config.json
    1.06 kB
    Upload SecFix LoRA adapter 15 days ago
  • adapter_model.safetensors
    54.6 MB
    xet
    Upload SecFix LoRA adapter 15 days ago
  • chat_template.jinja
    3.26 kB
    Upload SecFix LoRA adapter 15 days ago
  • epoch_01_metrics.json
    964 Bytes
    Upload SecFix LoRA adapter 15 days ago
  • epoch_metrics.jsonl
    781 Bytes
    Upload SecFix LoRA adapter 15 days ago
  • final_eval_metrics.json
    155 Bytes
    Upload SecFix LoRA adapter 15 days ago
  • tokenizer.json
    17.2 MB
    xet
    Upload SecFix LoRA adapter 15 days ago
  • tokenizer_config.json
    352 Bytes
    Upload SecFix LoRA adapter 15 days ago
  • training_args.bin

    Detected Pickle imports (10)

    • "transformers.trainer_utils.IntervalStrategy",
    • "torch.device",
    • "transformers.trainer_utils.SaveStrategy",
    • "accelerate.state.PartialState",
    • "transformers.trainer_utils.HubStrategy",
    • "accelerate.utils.dataclasses.DistributedType",
    • "transformers.training_args.TrainingArguments",
    • "transformers.training_args.OptimizerNames",
    • "transformers.trainer_utils.SchedulerType",
    • "transformers.trainer_pt_utils.AcceleratorConfig"

    How to fix it?

    5.33 kB
    xet
    Upload SecFix LoRA adapter 15 days ago