Instructions to use microsoft/unixcoder-base-nine with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/unixcoder-base-nine with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="microsoft/unixcoder-base-nine")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("microsoft/unixcoder-base-nine") model = AutoModel.from_pretrained("microsoft/unixcoder-base-nine", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Add exported openvino model 'openvino_model_qint8_quantized.xml'
Verified signatureHello! *This pull request has been automatically generated from the [`export_static_quantized_openvino_model`](https://sbert.net/docs/package_reference/util.html#sentence_transformers.backend.export_static_quantized_openvino_model) function from the Sentence Transformers library.* ## Config ```python OVQuantizationConfig( quant_method=<OVQuantizationMethod.DEFAULT: 'default'> ) ``` ## Tip: Consider testing this pull request before merging by loading the model from this PR with the `revision` argument: ```python from sentence_transformers import SentenceTransformer # TODO: Fill in the PR number pr_number = 2 model = SentenceTransformer( "microsoft/unixcoder-base-nine", revision=f"refs/pr/{pr_number}", backend="openvino", model_kwargs={"file_name": "openvino_model_qint8_quantized.xml"}, ) # Verify that everything works as expected embeddings = model.encode(["The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium."]) print(embeddings.shape)…577fd76
-
Update README.md
Verified signature5f0dc25
-
Upload config.json
1e11483 -
Upload vocab.json
d9d590a -
Upload tokenizer_config.json
140c95e -
Upload special_tokens_map.json
6a16aae -
Upload pytorch_model.bin with git-lfs
6bf6b6f -
Upload merges.txt
12eb166 -
Upload config.json
65e6fa8 -
Update README.md
32f9346 -
initial commit
fcefb22