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

SwastikM
/
Llama-2-7B-Chat-text2code

Text Generation
PEFT
Safetensors
English
text2code
LoRA
GPTQ
Llama-2-7B-Chat
text2python
instruction2code
nl2code
python
Model card Files Files and versions
xet
Community
1

Instructions to use SwastikM/Llama-2-7B-Chat-text2code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use SwastikM/Llama-2-7B-Chat-text2code with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("TheBloke/Llama-2-7b-Chat-GPTQ")
    model = PeftModel.from_pretrained(base_model, "SwastikM/Llama-2-7B-Chat-text2code")
  • Notebooks
  • Google Colab
  • Kaggle
Llama-2-7B-Chat-text2code
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
SwastikM's picture
SwastikM
initial commit
2ade9df verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago