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

  • Log In
  • Sign Up

microsoft
/
codebert-base

Feature Extraction
Transformers
PyTorch
google-tensorflow TensorFlow
JAX
Rust
roberta
Model card Files Files and versions
xet
Community
10

Instructions to use microsoft/codebert-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use microsoft/codebert-base with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="microsoft/codebert-base")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("microsoft/codebert-base")
    model = AutoModel.from_pretrained("microsoft/codebert-base")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
codebert-base
Ctrl+K
Ctrl+K
  • 3 contributors
History: 17 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
99d7ef8 verified about 1 year ago
  • .gitattributes
    445 Bytes
    Adding `safetensors` variant of this model about 1 year ago
  • README.md
    1.22 kB
    Migrate model card from transformers-repo over 5 years ago
  • config.json
    498 Bytes
    Update config.json almost 6 years ago
  • flax_model.msgpack
    499 MB
    xet
    upload flax model almost 5 years ago
  • merges.txt
    456 kB
    Update merges.txt almost 6 years ago
  • model.safetensors
    499 MB
    xet
    Adding `safetensors` variant of this model about 1 year ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    499 MB
    xet
    Update pytorch_model.bin almost 6 years ago
  • rust_model.ot
    499 MB
    xet
    Addition of Rust model about 4 years ago
  • special_tokens_map.json
    150 Bytes
    Update special_tokens_map.json almost 6 years ago
  • tf_model.h5
    499 MB
    xet
    Update tf_model.h5 almost 6 years ago
  • tokenizer_config.json
    25 Bytes
    Update tokenizer_config.json almost 6 years ago
  • vocab.json
    899 kB
    Update vocab.json almost 6 years ago