Instructions to use microsoft/codeexecutor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/codeexecutor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="microsoft/codeexecutor")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("microsoft/codeexecutor") model = AutoModel.from_pretrained("microsoft/codeexecutor", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download vocab.json from microsoft/codeexecutor: direct link, hf CLI and curl.
- Browser
- Download file 1.04 MB
-
https://huggingface.co/microsoft/codeexecutor/resolve/refs%2Fpr%2F1/vocab.json
- Command line
-
hf download hf://microsoft/codeexecutor@refs/pr/1/vocab.json
-
curl -L -o vocab.json https://huggingface.co/microsoft/codeexecutor/resolve/refs%2Fpr%2F1/vocab.json
1.04 MB
File too large to display, you can check the raw version instead.