Comments (1)
This error is occurring because your inference code is trying to run the model in fp16 on the CPU, which transformers/pytorch do not support. If you have a GPU on the machine you're running this on, I'd recommend using it - you can do that by changing model_kwargs
like so:
model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": False, "device_map": "auto"},
If you don't have a GPU then you might be able to run the model in either fp32 or bf16 precision. Try like so:
model_kwargs={"torch_dtype": torch.float32, "load_in_4bit": False}, # or torch.bfloat16
from mergekit.
Related Issues (20)
- How does allow_crimes works HOT 1
- Typo in your evolutionary merging tutorial causes error HOT 1
- what is the default model download path ? HOT 3
- Idea: Scaling the Down-Projection Matrix in 'Mixture of Experts' Models HOT 7
- The format of the inference result after model merging is not consistent with the base model inference format HOT 1
- DoRA HOT 1
- Training at Lower Context and Merging Large
- View size is not compatible with input tensor's size and stride/You are trying to save a non contiguous tensor Fix HOT 1
- RuntimeError: "svd_cuda_gesvdj" not implemented for 'BFloat16' HOT 4
- Mergekit-Evolve with vLLM enabled causes error if merge_method is linear HOT 2
- How are dimensions of multiple layer's matched?
- Merge only the transformer parts (including the input embedding layer) HOT 5
- Implementation of AdaMerging: Adaptive Model Merging for Multi-Task Learning
- Existing Mergekit algorithms to merge VLM with LLM? HOT 1
- Qwen/Qwen1.5-1.8B MoE Merging fails HOT 3
- Mixed Precision Merging HOT 1
- Add support for `subfolder` loading
- How to merge a VLM and LLM with different model type.
- Merge of hidden_size
- Relax dependency versions
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 mergekit.