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

StarryXCN
/
bert-chinese-lora-sentiment

Text Classification
PEFT
Safetensors
Transformers
lora
sentiment-analysis
bert
chinese
Model card Files Files and versions
xet
Community

Instructions to use StarryXCN/bert-chinese-lora-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use StarryXCN/bert-chinese-lora-sentiment with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForSequenceClassification
    
    base_model = AutoModelForSequenceClassification.from_pretrained("/home/starryx/llm_lib/model--google-bert--bert-base-chinese")
    model = PeftModel.from_pretrained(base_model, "StarryXCN/bert-chinese-lora-sentiment")
  • Transformers

    How to use StarryXCN/bert-chinese-lora-sentiment with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="StarryXCN/bert-chinese-lora-sentiment")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("StarryXCN/bert-chinese-lora-sentiment", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
bert-chinese-lora-sentiment
2.23 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
StarryXCN's picture
StarryXCN
Upload folder using huggingface_hub
905756c verified 4 months ago
  • .gitattributes
    1.52 kB
    initial commit 4 months ago
  • README.md
    542 Bytes
    Upload folder using huggingface_hub 4 months ago
  • adapter_config.json
    1.1 kB
    Upload folder using huggingface_hub 4 months ago
  • adapter_model.safetensors
    1.79 MB
    xet
    Upload folder using huggingface_hub 4 months ago
  • tokenizer.json
    439 kB
    Upload folder using huggingface_hub 4 months ago
  • tokenizer_config.json
    322 Bytes
    Upload folder using huggingface_hub 4 months ago