Model reference · open weights

unixcoder

unixcoder is an open-weight embedding model from microsoft, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.

Embeddings microsoft 1 variants 214k downloads/mo
Request this model on EU hardware All served models Not on the shared API today — deployed on request.

About

What unixcoder is

Model Card for UniXcoder-base Model Details Model Description UniXcoder is a unified cross-modal pre-trained model that leverages multimodal data (i.e. code comment and AST) to pretrain code representation. - Developed by: Microsoft Team - Shared by [Optional]: Hugging Face - Model type: Feature Engineering - Language(s) (NLP): en - License: Apache-2.0 - Related Models: - Parent Model: RoBERTa - Resources for more information: - Associated Paper Uses 1. Dependency - pip install torch - pip install transformers 2. Quick Tour We implement a class to use UniXcoder and you can follow the code to build UniXcoder. You can download the class by In the following, we will give zero-shot examples for several tasks under different mode, including code search (encoder-only), code completion (decoder-only), function name prediction (encoder-decoder) , API recommendation (encoder-decoder), code summarization (encoder-decoder). 3. Encoder-only Mode For encoder-only mode, we give an example of code search. 1) Code and NL Embeddings Here, we give an example to obtain code fragment embedding from CodeBERT. 2) Similarity between code and NL Now, we calculate cosine similarity between NL and two functions. Although the difference of two functions is only a operator (< and ), UniXcoder can distinguish them. 3. Decoder-only Mode For decoder-only mode, we give an example of code completion. 4. Encoder-Decoder Mode For encoder-decoder mode, we give two examples including: function name prediction, API recommendation, code summarization. 1) Function Name Prediction 2) API Recommendation 3) Code Summarization Reference If you use this code or UniXcoder, please consider citing us. title={UniXcoder: Unified Cross-Modal Pre-training for Code Representation}, author={Guo, Daya and Lu, Shuai and Duan, Nan and Wang, Yanlin and Zhou, Ming and Yin, Jian}, journal={arXiv preprint arXiv:2203.03850}, year={2022} }</code</pre

Summarised from the published model card. Read the full card on the HuggingFace links below.

Specifications

What it is

Makermicrosoft
TypeEmbedding models
Variants1
Runs withtransformers
Released2022-03-23
Popularity214k downloads / month
Likes69
LicenceOpen weights

How it works

How embedding models work

Your textsentence / documentEncodermaps meaningVectorlist of numbersAn embedding model turns text into a vector, so similar meanings sit close together — the basis of search and RAG.

Variants

Sizes & precisions

Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.

VariantParamsPrecisionVRAMFits 16 GBWeights
unixcoder-baseBF16Weights ↗

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys unixcoder for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (unixcoder below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"unixcoder","input":"text to embed"}'

Details

Languages, data & research

Languages

en

Tags

transformers pytorch roberta feature-extraction en endpoints_compatible deploy:azure

Papers

Licence

Open weights

Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗

Sources

Weights & code

Want unixcoder on EU-owned hardware?

Request this model on EU hardware See what’s served now

Explore

More embedding models

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms