Run this model with HF Jobs
Run SmartPy/amazon_reviews 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/SmartPy/amazon_reviews. 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/SmartPy/amazon_reviews 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 SmartPy/amazon_reviews with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SmartPy/amazon_reviews with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SmartPy/amazon_reviews", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload config.json with huggingface_hub
Browse files11{"model_name": "SmartPy/amazon_reviews", "feature_extractor": "SmartPy/amazon_reviews", "tokenizer": "SmartPy/amazon_reviews", "max_length": 128, "padding": "max_length", "truncation": true, "return_tensors": "pt", "return_token_type_ids": false, "return_attention_mask": true, "return_overflowing_tokens": false, "return_special_tokens_mask": false, "return_offsets_mapping": false, "return_length": false, "verbose": true, "preprocessing_num_workers": 4, "use_fast": true, "revision": "main", "use_auth_token": null, "torchscript": false, "use_legacy_prediction_loop": false, "model": {"encoder": {"type": "image", "model_name": "SmartPy/amazon_reviews", "feature_extractor": "SmartPy/amazon_reviews", "freeze_feature_extractor": false, "return_dict": true, "torchscript": false, "use_auth_token": null}, "decoder": {"type": "text", "model_name": "SmartPy/amazon_reviews", "tokenizer": "SmartPy/amazon_reviews", "max_length": 128, "padding": "max_length", "truncation": true, "return_tensors": "pt", "return_token_type_ids": false, "return_attention_mask": true, "return_overflowing_tokens": false, "return_special_tokens_mask": false, "return_offsets_mapping": false, "return_length": false, "verbose": true, "preprocessing_num_workers": 4, "use_fast": true, "revision": "main", "use_auth_token": null, "torchscript": false, "use_legacy_prediction_loop": false}}}{"model_type": "vision-text-dual-encoder", "model_name": "SmartPy/amazon_reviews", "feature_extractor": "SmartPy/amazon_reviews", "tokenizer": "SmartPy/amazon_reviews", "max_length": 128, "padding": "max_length", "truncation": true, "return_tensors": "pt", "return_token_type_ids": false, "return_attention_mask": true, "return_overflowing_tokens": false, "return_special_tokens_mask": false, "return_offsets_mapping": false, "return_length": false, "verbose": true, "preprocessing_num_workers": 4, "use_fast": true, "revision": "main", "use_auth_token": null, "torchscript": false, "use_legacy_prediction_loop": false, "model": {"encoder": {"type": "image", "model_name": "SmartPy/amazon_reviews", "feature_extractor": "SmartPy/amazon_reviews", "freeze_feature_extractor": false, "return_dict": true, "torchscript": false, "use_auth_token": null}, "decoder": {"type": "text", "model_name": "SmartPy/amazon_reviews", "tokenizer": "SmartPy/amazon_reviews", "max_length": 128, "padding": "max_length", "truncation": true, "return_tensors": "pt", "return_token_type_ids": false, "return_attention_mask": true, "return_overflowing_tokens": false, "return_special_tokens_mask": false, "return_offsets_mapping": false, "return_length": false, "verbose": true, "preprocessing_num_workers": 4, "use_fast": true, "revision": "main", "use_auth_token": null, "torchscript": false, "use_legacy_prediction_loop": false}}}config.json+1-1