Run this model with HF Jobs
Run Berketarak/Product-Matching-Classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Berketarak/Product-Matching-Classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Berketarak/Product-Matching-Classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Berketarak/Product-Matching-Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Berketarak/Product-Matching-Classifier with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Berketarak/Product-Matching-Classifier") model = AutoModel.from_pretrained("Berketarak/Product-Matching-Classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
#2
by bertugmirasyedi - opened
71 unmodified lines7273747576777812 unmodified lines9192939471 unmodified linestokenizer = BertTokenizer.from_pretrained('Berketarak/Product-Matching-Classifier')model = CustomBertModel.from_pretrained('Berketarak/Product-Matching-Classifier')product1 = 'X brand Pegasus Sneakers'product2 = 'Y brand Shoes'12 unmodified linesprint(f"The products are likely the SAME. Model output: {output}")else:print(f"The products are likely DIFFERENT. Model output: {output}")71 unmodified lines727374757677787980818212 unmodified lines95969771 unmodified linestokenizer = BertTokenizer.from_pretrained('Berketarak/Product-Matching-Classifier')model = CustomBertModel.from_pretrained('Berketarak/Product-Matching-Classifier')# Send model to GPUdevice = torch.device('cuda' if torch.cuda.is_available() else 'cpu')model.to(device)# Define the productsproduct1 = 'X brand Pegasus Sneakers'product2 = 'Y brand Shoes'12 unmodified linesprint(f"The products are likely the SAME. Model output: {output}")else:print(f"The products are likely DIFFERENT. Model output: {output}")
README.md+4-1