seniichev/amazon-fashion-2023-full
Viewer • Updated • 2.5M • 50 • 2
Recommendation model with semantic IDs for Amazon Fashion.
This model uses VQ-VAE to create semantic item IDs, enabling a more accurate understanding of semantic relationships between products.
from any2any_trainer.models.recommendation import SemanticIDRecommendationModel
# Load model
model = SemanticIDRecommendationModel.from_pretrained("zjkarina/omniRecsysLLM_semanticIDsmodality")
# Generate recommendations with semantic IDs
recommendations = model.predict_next_item(
text="The user bought jeans and a t-shirt",
id_ids=[12345, 67890], # Item IDs from purchase history
top_k=5,
use_semantic_ids=True
)
The model was trained on the Amazon Fashion 2023 dataset using semantic IDs generated via VQ-VAE.