Run this model with HF Jobs
Run onnx-community/codebert-base-ONNX on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/onnx-community/codebert-base-ONNX. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/onnx-community/codebert-base-ONNX on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use onnx-community/codebert-base-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/codebert-base-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('feature-extraction', 'onnx-community/codebert-base-ONNX');
codebert-base (ONNX)
This is an ONNX version of microsoft/codebert-base. It was automatically converted and uploaded using this Hugging Face Space.
Usage with Transformers.js
See the pipeline documentation for feature-extraction: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.FeatureExtractionPipeline
CodeBERT-base
Pretrained weights for CodeBERT: A Pre-Trained Model for Programming and Natural Languages.
Training Data
The model is trained on bi-modal data (documents & code) of CodeSearchNet
Training Objective
This model is initialized with Roberta-base and trained with MLM+RTD objective (cf. the paper).
Usage
Please see the official repository for scripts that support "code search" and "code-to-document generation".
Reference
- CodeBERT trained with Masked LM objective (suitable for code completion)
- π€ Hugging Face's CodeBERTa (small size, 6 layers)
Citation
@misc{feng2020codebert,
title={CodeBERT: A Pre-Trained Model for Programming and Natural Languages},
author={Zhangyin Feng and Daya Guo and Duyu Tang and Nan Duan and Xiaocheng Feng and Ming Gong and Linjun Shou and Bing Qin and Ting Liu and Daxin Jiang and Ming Zhou},
year={2020},
eprint={2002.08155},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
- Downloads last month
- 19
Model tree for onnx-community/codebert-base-ONNX
Base model
microsoft/codebert-base
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('feature-extraction', 'onnx-community/codebert-base-ONNX');