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

  • Log In
  • Sign Up

ydshieh
/
pt_custom_model_example

Transformers
PyTorch
my_model
custom_code
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Transformers

    How to use ydshieh/pt_custom_model_example with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("ydshieh/pt_custom_model_example", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
pt_custom_model_example
Ctrl+K
Ctrl+K
  • 2 contributors
History: 10 commits
ydshieh
add model
eef44fc over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • config.json
    180 Bytes
    add model over 2 years ago
  • configuration_my_model.py
    331 Bytes
    add model over 2 years ago
  • modeling_my_model.py
    537 Bytes
    add model over 2 years ago
  • my_config.py
    270 Bytes
    add config over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    1.02 kB
    xet
    add model over 2 years ago