Skip to main content
The 2024 Developer Survey results are live! See the results

NLP Collective

A collective focused on NLP (natural language processing), the transformation or extraction of useful information from natural language data.
38.9k Questions
+42
7.5k Members
+70
Contact

Pinned content

View all 2 collections

NLP admins have deemed these posts noteworthy.

Pinned
4 votes
1k views
Collection

Natural Language Processing FAQ

Frequently asked questions relating to NLP. Many of these may be questions that are often asked over and over, duplicates would likely be closed in favor of these. Add the best answer (using the ...
Berthold's user avatar
  • 101

Can you answer these questions?

View all unanswered questions

These questions still don't have an answer

0 votes
0 answers
9 views

CUDA Out of Memory Error Despite Having Multiple GPUs

I'm encountering a CUDA out-of-memory error while trying to run a PyTorch model, even though my system has multiple NVIDIA GPUs. # Load the tokenizer and model tokenizer = AutoTokenizer....
0 votes
0 answers
11 views

RuntimeError: mat1 and mat2 shapes cannot be multiplied (100x768 and 2048x768)

I am trying to find similarity scores between the encodings of the image and prompt (which is the label of the image). I am new to machine learning, I realise that there is an issue with some shape of ...
0 votes
0 answers
7 views

Why can't I install NLTK even though I checked the version numbers of numpy, scikitlearn, and scipy?

I ran the code import nltk from nltk.stem import PorterStemmer from nltk.tokenize import word_tokenize nltk.download('punkt') If I run my code, I see the following: File "sklearn/utils/...
0 votes
0 answers
11 views

How to host NLP model as API?

I have trained a chatbot model and want to integrate it into an Android app. My goal is to enable chatbot functionality in the app by hosting the model as an API so users can interact with it. I'm ...
0 votes
0 answers
8 views

GGUF model in LM Studio returns broken answer

I try to run LLM GGUF model QuantFactory/T-lite-instruct-0.1-GGUF specifically its quantized version T-lite-instruct-0.1.Q2_K.gguf in LM Studio. Sometimes it works fine. But sometimes it returns "...

Looking for an extra challenge?

View all bountied questions

These questions have a bounty on them

0 votes
1 answer
50 views
+50

How to use HuggingFace's run_translation.py script to train a translation from scratch?

I tried various HuggingFace scripts to build language models, such as run_mlm.py (link), run_clm.py (link) and run_translation.py (link). For the former 2 scripts, it can train a language model from ...