ONNX-converted models
Collection
Models converted to ONNX for faster CPU inference on LLM Guard. โข 20 items โข Updated โข 2
How to use protectai/vishnun-codenlbert-sm-onnx with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="protectai/vishnun-codenlbert-sm-onnx") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("protectai/vishnun-codenlbert-sm-onnx")
model = AutoModelForSequenceClassification.from_pretrained("protectai/vishnun-codenlbert-sm-onnx", device_map="auto")THIS PROJECT HAS BEEN ARCHIVED.
This project and its associated code on GitHub are no longer under active development or maintained.
This model is a conversion of vishnun/codenlbert-sm to ONNX format using the ๐ค Optimum library.
Base model
vishnun/codenlbert-sm