Browse by Topic
Popular
Popular Posts
Latest
Latest Python Posts
Python Sentence Transformers: Cosine Similarity and Semantic Search
Learn how to use Python sentence transformers and cosine similarity to build semantic search. Covers model loading, embeddings, similarity scoring, vector indexes, and practical trade-offs.
Python Sentence Transformers: Embeddings and Semantic Similarity
Learn how to generate sentence embeddings with Python's sentence-transformers library and compute semantic similarity with cosine similarity. The article also covers model selection, batching, and production considerations.
Fine-Tuning with Python Transformers Trainer and TrainingArguments
python transformers trainer trainingarguments and fine tuning: Learn how to fine-tune transformer models with the Python transformers Trainer and TrainingArguments, co...
Python Transformers GPU and Batch Inference
python transformers gpu and batch inference: Learn how to run Hugging Face Transformers models on GPU with batched inputs to improve throughput and reduce inference la...
Save and Load Local Models with Python Transformers
Use save_pretrained and from_pretrained in Python to save and reload fine-tuned Hugging Face models from a local directory, including what gets written and common failure modes.
Python Transformers Embeddings and Feature Extraction
python transformers embeddings and feature extraction: Learn how to extract embeddings and feature vectors from text using Python Transformers, covering tokenization,...
Python Transformers for Summarization, Translation, and QA
python transformers summarization translation and question answering: Learn to use Python Transformers for summarization, translation, and question answering with prac...
Python Transformers: Padding, Truncation, and Attention Masks
Understand how Hugging Face tokenizers use padding, truncation, and attention masks to shape batches for transformer models, with practical examples and common edge cases.
Using AutoTokenizer and AutoModel in Hugging Face Transformers
Learn how AutoTokenizer and AutoModel simplify loading pretrained models and tokenizers in the Hugging Face transformers library, including task-specific variants and tokenizer behavior.
Python Transformers Pipeline for Sentiment and Generation
python transformers pipeline text classification sentiment and generation: Use the Transformers pipeline API for sentiment analysis and text generation in Python: mode...