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

  • Log In
  • Sign Up

microsoft
/
graphcodebert-base

Fill-Mask
Transformers
PyTorch
google-tensorflow TensorFlow
JAX
roberta
Model card Files Files and versions
xet
Community
8

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

  • Libraries
  • Transformers

    How to use microsoft/graphcodebert-base with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("fill-mask", model="microsoft/graphcodebert-base")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForMaskedLM
    
    tokenizer = AutoTokenizer.from_pretrained("microsoft/graphcodebert-base")
    model = AutoModelForMaskedLM.from_pretrained("microsoft/graphcodebert-base")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Adding `safetensors` variant of this model

#8 opened about 1 year ago by
SFconvertbot

Adding `safetensors` variant of this model

#7 opened about 1 year ago by
SFconvertbot

Adding `safetensors` variant of this model

#6 opened about 1 year ago by
SFconvertbot

Adding `safetensors` variant of this model

#5 opened about 1 year ago by
SFconvertbot

Adding `safetensors` variant of this model

#3 opened about 3 years ago by
SFconvertbot

Updated README model card

#2 opened over 3 years ago by
anjandash
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs