Instructions to use AbdullahKhanSherwani/Javed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AbdullahKhanSherwani/Javed with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-0.8B") model = PeftModel.from_pretrained(base_model, "AbdullahKhanSherwani/Javed") - Notebooks
- Google Colab
- Kaggle
Javed
Javed is a Qwen3.5-0.8B LoRA adapter that scores MATCH and DIFFERENT for two product listings in a single forward pass. It uses title, description, and brand to decide whether the listings describe the same make, model, and variant.
Benchmark
The WDC Products medium pairwise benchmark has 80% corner cases and 100% unseen products on the test split. We used 6,000 training pairs, 3,500 validation pairs, and 4,500 held-out test pairs (500 matches and 4,000 non-matches). Descriptions were capped at 100 whitespace-separated words. Inputs excluded price and currency. Train and validation came from the authors' MatchGPT export, and test came from their gold unseen export.
| Method | Test AP | Test F1 at validation max-F1 threshold | Test recall at validation 1% FPR threshold | Realized test FPR |
|---|---|---|---|---|
| Javed (this adapter) | 87.4% | 80.8% | 61.2% | 1.125% |
| SearchJev-0.8B | 69.9% | 68.0% | 34.6% | 1.075% |
| Qwen3-Reranker-0.6B | 63.5% | 62.6% | 23.2% | 0.725% |
| Qwen3.5-0.8B base | 37.7% | 39.9% | 14.8% | 0.950% |
| Logistic matcher | 27.7% | 36.3% | 5.8% | 1.750% |
| RapidFuzz token-set | 30.4% | 30.7% | 9.4% | 1.275% |
| RapidFuzz WRatio | 22.3% | 32.2% | 4.4% | 1.250% |
AP means average precision for MATCH. Thresholds were frozen on validation. At the validation 1% false-positive-rate threshold, Javed found 306 of 500 matches and made 45 false matches out of 4,000 non-matches. At the validation max-F1 threshold it found 422 matches and made 122 false matches. Full metrics, exact thresholds, and split hashes
Use the adapter
This example uses the SearchJev runtime and CUDA. The evaluated environment used Transformers 5.22.1 and PEFT 0.21.2.
git clone https://github.com/EvoScientist/SearchJev.git
cd SearchJev
git checkout 054ea81d43071b93e2d75b7396a729a2598ac6ac
python -m pip install torch transformers==5.22.1 peft==0.21.2 accelerate huggingface_hub numpy pyyaml
Run from the SearchJev checkout. Use the uncalibrated score scale (temperature 1.0) with the published thresholds. Select a threshold on representative validation data before using scores in a new catalog.
from huggingface_hub import snapshot_download
from training.inference import JEVPredictor
base = snapshot_download(
'Qwen/Qwen3.5-0.8B',
revision='2fc06364715b967f1860aea9cf38778875588b17',
)
adapter = snapshot_download('AbdullahKhanSherwani/Javed')
predict = JEVPredictor(
adapter, base_model=base, dtype='float16', device='cuda',
max_length=1024, calibration=False,
)
result = predict.decide(
{
'offer_a': {'title': 'Epson T502 black ink bottle 127 mL',
'description': 'Black refill ink, part T502120', 'brand': 'Epson'},
'offer_b': {'title': 'Epson 502 EcoTank black refill T502120',
'description': '127 mL bottle', 'brand': 'Epson'},
},
question=('Do the two product offers describe the same real-world product '
'(same make, model and variant)? Answer MATCH if they are the '
'same product, DIFFERENT if they are not.'),
options={
'MATCH': 'Both offers describe the same product.',
'DIFFERENT': 'The offers describe different products, variants or models.',
},
temperature=1.0,
)
p_match = result.probabilities['MATCH']
auto_match = not result.truncated and p_match >= 0.9926541734255221
print('MATCH' if auto_match else 'REVIEW', p_match)
Training and evaluation scope
One NVIDIA L4 run used fp16 LoRA (rank 16, alpha 32), three epochs, effective batch size 16, learning rate 1e-4, seed 42, maximum length 1,024, and 1,125 optimizer steps. The fit took 56m 21s wall time. The base is pinned as shown in the example. Resolved training configuration and evaluation coverage and timings
This evaluates product identity across web listings. Supplier catalogs and invoice decisions need separate validation. Results cover one seed and one fixed test split. The authors' test export lacks hard-negative flags, so the hard-negative breakdown is for validation.
Built for the Qwen Local Hackathon using SearchJev. The adapter is released under Apache 2.0. Qwen base model and license | WDC Products paper by Peeters, Der, and Bizer
- Downloads last month
- -