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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

AmrBelal021
/
CodeGuard-7B-v1

Text Generation
PEFT
Safetensors
llama-3
lora
security
dpo
conversational
Model card Files Files and versions
xet
Community

Instructions to use AmrBelal021/CodeGuard-7B-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use AmrBelal021/CodeGuard-7B-v1 with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("unsloth/meta-llama-3.1-8b-instruct-bnb-4bit")
    model = PeftModel.from_pretrained(base_model, "AmrBelal021/CodeGuard-7B-v1")
  • Notebooks
  • Google Colab
  • Kaggle
CodeGuard-7B-v1
71.8 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
AmrBelal021's picture
AmrBelal021
Update README.md
adf0c5c verified 3 months ago
  • .gitattributes
    1.57 kB
    Upload model trained with Unsloth 3 months ago
  • README.md
    785 Bytes
    Update README.md 3 months ago
  • adapter_config.json
    381 Bytes
    Upload adapter_config.json 3 months ago
  • adapter_model.safetensors
    54.6 MB
    xet
    Upload model trained with Unsloth 3 months ago
  • chat_template.jinja
    4.61 kB
    Upload model trained with Unsloth 3 months ago
  • special_tokens_map.json
    454 Bytes
    Upload model trained with Unsloth 3 months ago
  • tokenizer.json
    17.2 MB
    xet
    Upload model trained with Unsloth 3 months ago
  • tokenizer_config.json
    50.6 kB
    Upload model trained with Unsloth 3 months ago