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

mayankchugh-learning
/
gpt2-lora-ai-demo

Text Generation
PEFT
Safetensors
English
lora
demo
Model card Files Files and versions
xet
Community

Instructions to use mayankchugh-learning/gpt2-lora-ai-demo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use mayankchugh-learning/gpt2-lora-ai-demo with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("gpt2")
    model = PeftModel.from_pretrained(base_model, "mayankchugh-learning/gpt2-lora-ai-demo")
  • Notebooks
  • Google Colab
  • Kaggle
gpt2-lora-ai-demo
4.74 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
mayankchugh-learning's picture
mayankchugh-learning
Upload model
f3cad5e verified about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit about 1 month ago
  • README.md
    857 Bytes
    Upload README.md with huggingface_hub about 1 month ago
  • adapter_config.json
    990 Bytes
    Upload model about 1 month ago
  • adapter_model.safetensors
    1.18 MB
    xet
    Upload model about 1 month ago
  • tokenizer.json
    3.56 MB
    Upload tokenizer about 1 month ago
  • tokenizer_config.json
    326 Bytes
    Upload tokenizer about 1 month ago