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

dongxq
/
test_model

Summarization
Transformers
PyTorch
Chinese
pegasus
text2text-generation
Model card Files Files and versions
xet
Community
1

Instructions to use dongxq/test_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use dongxq/test_model with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "summarization" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # 'pip install "transformers<5.0.0'
    from transformers import pipeline
    
    pipe = pipeline("summarization", model="dongxq/test_model")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("dongxq/test_model")
    model = AutoModelForSeq2SeqLM.from_pretrained("dongxq/test_model")
  • Notebooks
  • Google Colab
  • Kaggle
test_model
1.05 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 27 commits
dongxiaoqun
Update README.md
e142f2c almost 4 years ago
  • .gitattributes
    1.17 kB
    initial commit almost 4 years ago
  • README.md
    3.16 kB
    Update README.md almost 4 years ago
  • added_tokens.json
    31 Bytes
    Upload added_tokens.json almost 4 years ago
  • config.json
    1.35 kB
    Upload config.json almost 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.HalfStorage"

    What is a pickle import?

    1.05 GB
    xet
    Upload pytorch_model.bin almost 4 years ago
  • special_tokens_map.json
    133 Bytes
    Upload special_tokens_map.json almost 4 years ago
  • tokenizer_config.json
    498 Bytes
    Upload tokenizer_config.json almost 4 years ago
  • vocab.txt
    374 kB
    Upload vocab.txt almost 4 years ago