Comments (3)
Hi @siddiquelatif , I have tested this bug, and removed this comment in the latest version,
before
def best_of_n_generate(
self,
model: Union[transformers.PreTrainedModel, vllm.LLM], # Union[transformers.PreTrainedModel, vllm.LLM]
model_tokenizer:transformers.PreTrainedTokenizer,
...
after
def best_of_n_generate(
self,
model, # Union[transformers.PreTrainedModel, vllm.LLM]
model_tokenizer:transformers.PreTrainedTokenizer,
...
so there will be bugs if vllm is not installed. However, VLLM models are also supported if you want. Please try to reinstall the LLM-blender package. This bug will be fixed.
from llm-blender.
Can you try deleting the variable type comments Union[transformers.PreTrainedModel, vllm.LLM]
? Will there still be errors?
from llm-blender.
Thanks @dongfu Jiang,
Yes, its working. Thanks again. :)
from llm-blender.
Related Issues (20)
- RuntimeError: in loading state_dict for CrossCompareReranker HOT 3
- Load PairRM ranker without Internet access failed HOT 4
- Data Generation Code HOT 4
- Replicate Experiments HOT 1
- Support for MPS device HOT 1
- undefined symbol: _ZNK3c1010TensorImpl36is_contiguous_nondefault_policy_implENS_12MemoryFormatE HOT 1
- How to act as reward model for RLHF HOT 1
- Training ranker on Unified-Feedback HOT 2
- GPU Memory Requirement on Retraining PairRM HOT 9
- How to change models to train ranker? HOT 1
- Split dependencies so that core install is light for model inference HOT 6
- Make `llm-blender` available on PyPI HOT 2
- Training the GenFuser HOT 2
- How to use gen_fuser alone for merging?
- Why the matrix M is not Symmetrical along the diagonal? HOT 6
- Question about the fuser outputs HOT 4
- Issue with calculating >= Vic and OA HOT 14
- Issues with the split of dataset HOT 4
- Unable to reproduce the results in the paper HOT 10
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 llm-blender.