Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

songhieng
/
khmer-mt5-summarization

Summarization
Transformers
Safetensors
Khmer
mt5
text2text-generation
Model card Files Files and versions
xet
Community
1

Instructions to use songhieng/khmer-mt5-summarization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use songhieng/khmer-mt5-summarization 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="songhieng/khmer-mt5-summarization")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("songhieng/khmer-mt5-summarization")
    model = AutoModelForSeq2SeqLM.from_pretrained("songhieng/khmer-mt5-summarization")
  • Notebooks
  • Google Colab
  • Kaggle
khmer-mt5-summarization
1.89 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
songhieng's picture
songhieng
Upload quantized-khmer-mt5.pth with huggingface_hub
5c0bdfb verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    5.18 kB
    Update README.md over 1 year ago
  • config.json
    802 Bytes
    Upload MT5ForConditionalGeneration over 1 year ago
  • generation_config.json
    142 Bytes
    Upload MT5ForConditionalGeneration over 1 year ago
  • model.safetensors
    1.2 GB
    xet
    Upload MT5ForConditionalGeneration over 1 year ago
  • quantized-khmer-mt5.pth

    Detected Pickle imports (8)

    • "torch.QInt8Storage",
    • "torch.LongStorage",
    • "torch.per_tensor_affine",
    • "torch.qint8",
    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2",
    • "torch._utils._rebuild_qtensor",
    • "collections.OrderedDict"

    How to fix it?

    685 MB
    xet
    Upload quantized-khmer-mt5.pth with huggingface_hub over 1 year ago
  • special_tokens_map.json
    416 Bytes
    Upload tokenizer over 1 year ago
  • spiece.model
    4.31 MB
    xet
    Upload tokenizer over 1 year ago
  • tokenizer_config.json
    892 Bytes
    Upload tokenizer over 1 year ago