TypeError: cannot pickle '_thread.RLock' object When I use openai = "0.28.1" it doesn't have the above errordosubot bot commented Dec 12, 2023 • edited 🤖 Hello @duongvinhduc! 🖐️ I'm Dosu, a friendly bot that's here to help you navigate the world of LangChain. From ...
Would be possible to save such information in another memory (e.g. on a disk)? I found that this is let's say old problem: Fastai learner export error while using callback #961 (comment) from ultralytics import YOLO import wandb def watch_model(trainer): wandb.watch(trainer.model, ...
Caching data in memory: Pickle can be used to serialize data to disk and then load it back into memory when needed. This can be useful for speeding up programs that access the same data frequently. Communicating between different processes or machines: Pickle can be used to serialize data to...
2. Converting the pickled output to integers before inserting into the dataframe (as per above link). This works fine (code below), BUT for larger datasets (40MB or less), I run out of memory on the conversion. e.g. X = vec.fit_transform(all_features) X_pickled = map(ord,pickle....
Im currently working on an animation, I have put quite a bit into it so far, but for some odd reason today it decided to give me the error message "Could not load scene into memory. Your document may be damaged". I had a look online and it seems to...
Im currently working on an animation, I have put quite a bit into it so far, but for some odd reason today it decided to give me the error message "Could not load scene into memory. Your document may be damaged". I had a look online and it seems to...
Hi, I have the same warning but then I also got this error "Ignoring... cannot pickle '_thread.RLock' object". Following by: Exception in thread Exception in thread Thread-42Thread-41: Traceback (most recent call last): File "/Users/guest1/opt/anaconda3/envs/MaskRCNN/lib/python3.8/...
from_texts( contents, embeddings_model, location=":memory:", collection_name="test", ) retriever = vector_store.as_retriever() # llm chatbot_model_name = ""togethercomputer/RedPajama-INCITE-Chat-3B-v1" model = AutoModelForCausalLM.from_pretrained( chatbot_model_name, load_in_8bit=True,...
🚀 Feature The ability to pickle.load a Python object containing a torch cuda tensor on a CPU only machine. Motivation Currently, trying to do this gives RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_av...
Workers can fall out of sync if one of them runs out of memory, or if there are other conditions in your training script that can cause one worker to finish an epoch while other workers are still iterating over their portions of the data. The error is totally deterministic: if I re-...