Comments (6)
Hi all,
This seems to be an issue for LangChain, and not bitsandbytes.
from bitsandbytes.
Not sure what you are trying to do but in my case I was using LangChain and running this example https://python.langchain.com/docs/integrations/document_loaders/hugging_face_dataset/
It seems to work with the below changes (comments at the top of each line)
# import from langchain.indexes.vectorstore rather than langchain.indexes as in the example
from langchain.indexes.vectorstore import VectorstoreIndexCreator
from langchain_community.embeddings import HuggingFaceEmbeddings
from langchain_openai import ChatOpenAI
from langchain_community.document_loaders.hugging_face_dataset import (
HuggingFaceDatasetLoader,
)
embeddings = HuggingFaceEmbeddings()
dataset_name = "tweet_eval"
page_content_column = "text"
name = "stance_climate"
loader = HuggingFaceDatasetLoader(dataset_name, page_content_column, name)
# pass the embedding as parameter, in the example is empty
index = VectorstoreIndexCreator(embedding=embeddings).from_loaders([loader])
llm = ChatOpenAI(model="gpt-3.5-turbo", temperature="0")
query = "What are the most used hashtag?"
# looks like we need to pass an llm now
result = index.query(query, llm=llm)
I hope it helps
from bitsandbytes.
I'm getting the same error! did you manage to find a solution?
from bitsandbytes.
same here
from bitsandbytes.
Confirm having this issue as well. following code at https://github.com/Ryota-Kawamura/LangChain-for-LLM-Application-Development
In addition, at Langchain docs at langchain docs it show that we can run below code, but we cannot, with error provide below
from langchain.indexes import VectorstoreIndexCreator
from langchain_community.document_loaders.hugging_face_dataset import (
HuggingFaceDatasetLoader,
)
dataset_name = "tweet_eval"
page_content_column = "text"
name = "stance_climate"
loader = HuggingFaceDatasetLoader(dataset_name, page_content_column, name)
index = VectorstoreIndexCreator().from_loaders([loader])
> error : ValidationError: 1 validation error for VectorstoreIndexCreator
embedding
field required (type=value_error.missing)
below is install packages from piplock file : also all latest
[packages]
langchain = "*"
python-dotenv = "*"
openai = "==0.28"
langchain-community = "*"
langchain-core = "*"
tiktoken = "*"
docarray = "*"
from bitsandbytes.
following, same error. tried a few alternatives...
from bitsandbytes.
Related Issues (20)
- AnimateDiff SDXL won't run
- AttributeError: 'NoneType' object has no attribute 'cquantize_blockwise_fp16_nf4' HOT 5
- Could not load bitsandbytes native library: 'NoneType' object has no attribute 'split' HOT 1
- ImportError: Using `bitsandbytes` 8-bit quantization requires Accelerate: `pip install accelerate` and the latest version of bitsandbytes: `pip install -i https://pypi.org/simple/ bitsandbytes`
- RuntimeError: Something when wrong when trying to find file. Maybe you do not have a linux system? HOT 1
- Error in Windows HOT 2
- please provide python whel package in nvidia jetson agx orin (aarch64 + cuda) HOT 1
- Exact version match required between the system and PyTorch CUDA libraries for the compilation to succeed HOT 1
- Error invalid device ordinal at line 359 in file /opt/bitsandbytes/csrc/pythonInterface.c
- Request for AdamW8bit support on CPU (would help TorchTune) HOT 5
- 8bit CAME optimizer
- "Only Tensors of floating point and complex dtype can require gradients", on FSDP, Accelerate, quatization HOT 1
- Is it possible to enable fused op F.gemv_4bit in F.gemv_4bit backward? HOT 1
- OSError: libcusparse.so.11: cannot open shared object file: No such file or directory CUDA Setup failed despite CUDA being available.
- out kwarg in matmul_4bit() is not working HOT 2
- load_in_8bit hangs on ROCm HOT 3
- RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument mat2 in method wrapper_CUDA_mm) HOT 2
- NotImplementedError: igemmlt not available (probably built with NO_CUBLASLT)
- ROCm and 8-bit quantization
- "You have a version of `bitsandbytes` that is not compatible with 4bit inference and training" HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitsandbytes.