Mohamed-Hanafy-mostafa/bge-small-jobs-finetuned
By Mohamed-Hanafy-mostafa · ↓ 6 · ♥ 0 · Updated 2026-03-21
What's in this repo
This page lists the files in Mohamed-Hanafy-mostafa/bge-small-jobs-finetuned, including model_quantized.onnx.
- 1 ONNX models (.onnx files)
- 9 files, including 5 .json, 1 .md, 1 .onnx, 1 .txt
- Last updated 2026-03-21
ONNX files
| File | Size | Download |
|---|---|---|
| model_quantized.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
bge-small-jobs-finetuned
Fine-tuned BAAI/bge-small-en-v1.5 on jobs data, exported and quantized to ONNX INT8 (~4x smaller than FP32).
Usage
import onnxruntime as ort
from transformers import AutoTokenizer
import numpy as np
tokenizer = AutoTokenizer.from_pretrained('Mohamed-Hanafy-mostafa/bge-small-jobs-finetuned')
session = ort.InferenceSession('model_quantized.onnx')
def embed(texts):
enc = tokenizer(texts, padding=True, truncation=True, max_length=64, return_tensors='np')
out = session.run(['last_hidden_state'],
{'input_ids': enc['input_ids'], 'attention_mask': enc['attention_mask']})
mask = enc['attention_mask'][..., np.newaxis]
embs = np.sum(out[0] * mask, axis=1) / np.sum(mask, axis=1)
return embs / np.linalg.norm(embs, axis=1, keepdims=True)
embeddings = embed(['python backend developer', 'ML engineer pytorch'])
print(embeddings.shape) # (2, 384)
Model info
feature-extraction
sentence-transformers
sentence-transformers
onnx
bert
feature-extraction
jobs
embeddings
base_model:BAAI/bge-small-en-v1.5
base_model:quantized:BAAI/bge-small-en-v1.5
text-embeddings-inference
endpoints_compatible
region:us
↓ 6
♥ 0
Created: 2026-03-21
Updated: 2026-03-21
View on Hugging FaceFiles (9)
.gitattributes
README.md
config.json
model_quantized.onnx
ONNX
ort_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.txt
Related models
More from Mohamed-Hanafy-mostafa
No other models by this author.