Views
No views yet
| File | Description |
|---|---|
model.int8.onnx | INT8 quantized, ~560 MB |
tokenizer/ | Same as base model |
1from huggingface_hub import hf_hub_download
2import onnxruntime as ort
3from transformers import AutoTokenizer
4
5repo_id = "geoffsee/octen-embedding-0.6b-onnx-int8"
6path = hf_hub_download(repo_id=repo_id, filename="model.int8.onnx")
7tokenizer = AutoTokenizer.from_pretrained(repo_id)
8session = ort.InferenceSession(path, providers=["CPUExecutionProvider"])
9# ... encode and run ...