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

Ashishkr
/
llama2-PII-Masking

Text Generation
PEFT
Model card Files Files and versions
xet
Community
3

Instructions to use Ashishkr/llama2-PII-Masking with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use Ashishkr/llama2-PII-Masking 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, "Ashishkr/llama2-PII-Masking")
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1!

#3 opened almost 2 years ago by
vivekwagh2003
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs