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

dina1
/
gpt2-wikitext2-lora-peft

Text Generation
PEFT
Safetensors
English
gpt2
lora
causal-lm
wikitext2
Model card Files Files and versions
xet
Community

Instructions to use dina1/gpt2-wikitext2-lora-peft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use dina1/gpt2-wikitext2-lora-peft with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("gpt2")
    model = PeftModel.from_pretrained(base_model, "dina1/gpt2-wikitext2-lora-peft")
  • Notebooks
  • Google Colab
  • Kaggle
gpt2-wikitext2-lora-peft
8.44 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
dina1's picture
dina1
Upload GPT-2 WikiText-2 LoRA PEFT adapter and evaluation artifacts
f7a573f verified 3 months ago
  • tokenizer
    Upload GPT-2 WikiText-2 LoRA PEFT adapter and evaluation artifacts 3 months ago
  • .gitattributes
    1.59 kB
    Upload GPT-2 WikiText-2 LoRA PEFT adapter and evaluation artifacts 3 months ago
  • README.md
    4.32 kB
    Upload GPT-2 WikiText-2 LoRA PEFT adapter and evaluation artifacts 3 months ago
  • adapter_config.json
    989 Bytes
    Upload GPT-2 WikiText-2 LoRA PEFT adapter and evaluation artifacts 3 months ago
  • adapter_model.safetensors
    1.18 MB
    xet
    Upload GPT-2 WikiText-2 LoRA PEFT adapter and evaluation artifacts 3 months ago
  • evaluation_summary.json
    466 Bytes
    Upload GPT-2 WikiText-2 LoRA PEFT adapter and evaluation artifacts 3 months ago
  • loss_and_perplexity_curves.png
    133 kB
    xet
    Upload GPT-2 WikiText-2 LoRA PEFT adapter and evaluation artifacts 3 months ago
  • production_manifest.json
    737 Bytes
    Upload GPT-2 WikiText-2 LoRA PEFT adapter and evaluation artifacts 3 months ago
  • tokenizer.json
    3.56 MB
    Upload GPT-2 WikiText-2 LoRA PEFT adapter and evaluation artifacts 3 months ago
  • tokenizer_config.json
    325 Bytes
    Upload GPT-2 WikiText-2 LoRA PEFT adapter and evaluation artifacts 3 months ago