Comments (2)
latest ipex-llm (2.1.0b20240523 version) already supports internlm-xcomposer2-vl-7b, please try it. (for now, only transformers 4.31 is supported)
more optimization is in progress.
import torch
from ipex_llm.transformers import AutoModelForCausalLM
from transformers import AutoTokenizer
ckpt_path = "<internlm-xcomposer2-vl-7b>"
tokenizer = AutoTokenizer.from_pretrained(ckpt_path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(ckpt_path, trust_remote_code=True,
load_in_low_bit="sym_int8") # use sym_int8 for better output
model = model.eval()
query = '<ImageHere>Please describe this image in detail.'
image = './image1.webp'
model = model.to('xpu')
response, _ = model.chat(tokenizer, query=query, image=image, history=[], do_sample=False)
print(response)
from bigdl.
Thanks and close the issue.
from bigdl.
Related Issues (20)
- Qwen-7B TypeError: qwen_attention_forward() got an unexpected keyword argument 'registered_causal_mask' HOT 2
- ipex-llm(0517) Failed to Run 'baichuan-inc/Baichuan2-7B-Chat' in batch_size==2 and batch_size==4 with 32-32, 1024-128, 2048-256 input_length HOT 1
- Qwen-7B-Chat fail with larger 6.7k for second or 3rd time HOT 2
- Ollama Linux No Response Issue with IPEX-LLM HOT 2
- Qwen1.5-4b and Qwen1.5-7b model cannot be loaded correctly in ipex-llm version 20240522 HOT 9
- [inference]: fine tuned model fails to do inferencing HOT 1
- ModuleNotFoundError: No module named 'ipex_llm.vllm.xpu' while using docker and installation HOT 1
- [integration]: merging bfloat16 model failed HOT 2
- all-in-one with version 2.1.0b1 failed HOT 3
- need an easy way to roll back driver installs HOT 3
- all-in-one benchmark llama-3-8b-instruct issue with version 2.1.0b1 HOT 3
- about test 3 Gpu with ipex HOT 1
- install issue HOT 2
- bug for inference qwen1.5-7b-chat with SYM_INT4 on Windows platform HOT 3
- Evaluation on if MiniCPM-2B-sft-bf16 need model based optimization on ipex-llm HOT 1
- finetune chatGLM6B using LoRA on arc HOT 3
- XEON and MAX with Kernel 5.15 configuration HOT 1
- transformers 4.38.1 gives bad llama3 performance on MTL iGPU HOT 2
- phi3 medium - garbage output in webui or generated by ollama HOT 12
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 bigdl.