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
370 Bytes
Ctrl+K
Ctrl+K
  • 3 contributors
History: 2 commits
system's picture
system HF Staff
Update tokenizer_config.json
dedb8f2 almost 6 years ago
  • .gitattributes
    345 Bytes
    initial commit almost 6 years ago
  • tokenizer_config.json
    25 Bytes
    Update tokenizer_config.json almost 6 years ago