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

monsterapi
/
CodeAlpaca_LLAMA2_7B

PEFT
llama2-7b
code
instruct
instruct-code
code-alpaca
alpaca-instruct
alpaca
llama7b
gpt2
Model card Files Files and versions
xet
Community
1

Instructions to use monsterapi/CodeAlpaca_LLAMA2_7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use monsterapi/CodeAlpaca_LLAMA2_7B with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf")
    model = PeftModel.from_pretrained(base_model, "monsterapi/CodeAlpaca_LLAMA2_7B")
  • Notebooks
  • Google Colab
  • Kaggle
CodeAlpaca_LLAMA2_7B
1.52 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
Zangs3011's picture
Zangs3011
initial commit
8554ae8 almost 3 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 3 years ago