Run this model with HF Jobs
Run claudios/cubert-20210711-Python-512 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/claudios/cubert-20210711-Python-512. 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/claudios/cubert-20210711-Python-512 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 claudios/cubert-20210711-Python-512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use claudios/cubert-20210711-Python-512 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="claudios/cubert-20210711-Python-512")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("claudios/cubert-20210711-Python-512") model = AutoModelForPreTraining.from_pretrained("claudios/cubert-20210711-Python-512", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files9 unmodified lines101112131415169 unmodified lines# CuBERT: Learning and Evaluating Contextual Embedding of Source Code## OverviewThis model is the unofficial HuggingFace version of "[CuBERT](https://github.com/google-research/google-research/tree/master/cubert)". In particular, this version comes from [gs://cubert/20210711_Python/pre_trained_model_epochs_2__length_512](https://console.cloud.google.com/storage/browser/cubert/20210711_Python/pre_trained_model_epochs_2__length_512). It was trained 2021-07-11 for 2 epochs with a 512 token context window on the Python BigQuery dataset. I manually converted the Tensorflow checkpoint to PyTorch, the tokenizer to a HuggingFace tokenizer, and have uploaded them here. All credit goes to Aditya Kanade, Petros Maniatis, Gogul Balakrishnan, and Kensen Shi.Citation:```bibtex9 unmodified lines101112131415169 unmodified lines# CuBERT: Learning and Evaluating Contextual Embedding of Source Code## OverviewThis model is the unofficial HuggingFace version of "[CuBERT](https://github.com/google-research/google-research/tree/master/cubert)". In particular, this version comes from [gs://cubert/20210711_Python/pre_trained_model_epochs_2__length_512](https://console.cloud.google.com/storage/browser/cubert/20210711_Python/pre_trained_model_epochs_2__length_512). It was trained 2021-07-11 for 2 epochs with a 512 token context window on the Python BigQuery dataset. I manually converted the Tensorflow checkpoint to PyTorch and have uploaded it here. The [tokenizer](https://github.com/google-research/google-research/blob/master/cubert/python_tokenizer.py) has not been converted yet. All credit goes to Aditya Kanade, Petros Maniatis, Gogul Balakrishnan, and Kensen Shi.Citation:```bibtex
README.md+1-1