-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Good First Issue]: Verify chatglm3-6b with GenAI text_generation #268
Comments
.take |
Thank you for looking into this issue! Please let us know if you have any questions or require any help. |
Hello @Utkarsh-2002, are you still working on this? Is there anything we could help you with? |
yes i am working on this can and there is some issue with the complilation part but i am working on it will let you know if a will need any help |
Hello @Utkarsh-2002, please let me know if you're still working on this, for now I'm unassigning you due to long inactivity. |
.take |
Thank you for looking into this issue! Please let us know if you have any questions or require any help. |
.take |
Thank you for looking into this issue! Please let us know if you have any questions or require any help. |
Sorry, I could not access lab PC till next week. My laptop is a little short for the task. So leave it open for others in the mean time. |
No worries, come back anytime you feel like contributing. You're always welcome :) |
#WLB |
Thank you for looking into this issue! Please let us know if you have any questions or require any help. |
#259 (5) is all we have about tests extension. |
@Wovchena Thank you for your guidance. |
Hey @Wovchena I have build and configure cmake(Release) but when I am executing |
@Wovchena As you can see except |
Can you share the build commands? I see on your screenshot that the error comes from |
@Wovchena git clone --recursive https://github.com/openvinotoolkit/openvino.git
git clone --recursive https://github.com/openvinotoolkit/openvino.genai.git cd openvino
sudo ./install_build_dependencies.sh
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --parallel 14
cd -- cmake --install openvino/build --prefix openvino_install
source openvino_install/setupvars.sh cd openvino.genai
cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
cmake --build ./build/ --config Release --parallel 14
cmake --install ./build/ --config Release --prefix openvino_install
cd openvino_install/samples/cpp ./build_samples.sh
cd -- cd openvino_cpp_samples_build/intel64/Release/ 1) beam_search_causal_lm: 2) benchmark_genai: 3) chat_sample: 4) greedy_causal_lm: 5) lora_greedy_causal_lm: 6) multinomial_causal_lm: 7) prompt_lookup_decoding_lm: 8) speculative_decoding_lm: After complete building and installing(e.g |
1) Is likely explained with swapped dimensions for that model. When adding the model to the supported list, please mark (no beam search). |
@Wovchena find_package(OpenVINOGenAI REQUIRED
HINTS
"${CMAKE_BINARY_DIR}" # Reuse the package from the build.
${OpenVINO_DIR} # GenAI may be installed alogside OpenVINO.
NO_CMAKE_FIND_ROOT_PATH
) for both the directory(e.g. |
You can use Missing .xml files is strange. Every sample requires them to exist and some of them already passed for you. Double check the folder content. Undeclared I forgot to mention that I've updated the main issue with the description how to install samples. But since you've already figured that out, no action is required. Although your solution is different. |
@Wovchena Below Image shows the contains of And below image show the error I am still getting on As you can see that error is related to |
I'm unable to reproduce You can check
|
@Wovchena |
Yes. @ilya-lavrenov, maybe you can suggest something about failing |
@Aniruddha521 what OpenVINO version do you use for inference? Looks like PA transformation have not worked correctly for ChatGLM3-6B |
Agree with you @Wovchena to make args to speculative decoding required. But can say that the original problem is reproduced in all |
@Aniruddha521 , please make sure you're using the latest version of OpenVINO. I've just successfully run the model and inferred it. |
I re-cloned openvino and openvino.genai and proceed as mention in the above steps and my openvino version in my conda enviroment is |
I think, the fix for your issue may not be in 2024.4.0, but it is present on the current master. |
@CuriousPanCake git clone --recursive https://github.com/openvinotoolkit/openvino.git
git clone --recursive https://github.com/openvinotoolkit/openvino.genai.git
cd openvino
sudo ./install_build_dependencies.sh
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --parallel 14
cd --
cmake --install openvino/build --prefix openvino_install
source openvino_install/setupvars.sh
cd openvino.genai
cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
cmake --build ./build/ --config Release --parallel 14
cd ..
cmake --install openvino.genai/build/ --config Release --prefix openvino_install
cd openvino_install/samples/cpp
./build_samples.sh
cd -- If there is anything I have missed then please let me know. |
Can anyone help me in this matter. I am getting this error while checking https://github.com/openvinotoolkit/openvino.genai/tree/master/tests/python_tests#customise-tests-run tests ERROR: Could not find a version that satisfies the requirement openvino-genai==2024.5.0.0 (from versions: 2024.2.0.0, 2024.3.0.0, 2024.4.0.0, 2024.4.1.0.dev20240926)
ERROR: No matching distribution found for openvino-genai==2024.5.0.0 Which I think is because 2024.5.0.0 is not release. |
OpenVINO 2024.5.0 is not released yet. It's available as pre-release package and should be installed with extra options |
I was able to run cd ~
apt update
apt install git python3.9 -y
apt install python3.9-dev -y
git clone --recursive https://github.com/openvinotoolkit/openvino.git
git clone --recursive https://github.com/openvinotoolkit/openvino.genai.git
cd openvino
./install_build_dependencies.sh
mkdir build && cd build
cmake -DENABLE_PYTHON=ON -DPython3_EXECUTABLE=/usr/bin/python3.9 -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --parallel 14
cd --
cmake --install openvino/build --prefix openvino_install
source openvino_install/setupvars.sh
cd openvino.genai
cmake -DCMAKE_BUILD_TYPE=Release -S ./ -B ./build/
cmake --build ./build/ --config Release --parallel 14
cd ..
cmake --install openvino.genai/build/ --config Release --prefix openvino_install
cd openvino_install/samples/cpp
./build_samples.sh
cd --
python3.9 -m pip install -r ~/openvino.genai/samples/requirements.txt
export PYTHONPATH=/root/openvino_install/python/
python3.9 -m pip install openvino.genai/thirdparty/openvino_tokenizers/ --pre --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
optimum-cli export openvino --trust-remote-code --task text-generation-with-past --model THUDM/chatglm3-6b chatglm3-6b
./openvino_cpp_samples_build/intel64/Release/speculative_decoding_lm chatglm3-6b/ chatglm3-6b/ "Why is the Sun yellow?" |
I too need to proceed with almost same sequence of commands but I have |
Were you able to reproduce it in docker? |
Probably yes, since after executing |
I proceed as mentioned in the task #259 with the following changes. nightly_models = [
"TinyLlama/TinyLlama-1.1B-Chat-v1.0",
"facebook/opt-125m",
"microsoft/phi-1_5",
"microsoft/phi-2",
"THUDM/chatglm2-6b",
"THUDM/chatglm3-6b", # no beam_search
"Qwen/Qwen2-0.5B-Instruct",
"Qwen/Qwen-7B-Chat",
"Qwen/Qwen1.5-7B-Chat",
"argilla/notus-7b-v1",
"HuggingFaceH4/zephyr-7b-beta",
"ikala/redpajama-3b-chat",
"mistralai/Mistral-7B-v0.1", 2) Added model to
cpp-greedy_causal_lm-Chatglm3-6b and cpp-prompt_lookup_decoding_lm-ubuntu-Chatglm3-6b
If I missed anything or any modification is needed then please let me know I will be glad to modify. I appreciate any help. |
You also need to extend the supported models list. Add a note that beam_search_causal_lm isn't supported. Where can I find a pull request? |
Context
This task regards enabling tests for chatglm3-6b. You can find more details under openvino_notebooks LLM chatbot README.md.
Please ask general questions in the main issue at #259
What needs to be done?
Described in the main Discussion issue at: #259
Example Pull Requests
Described in the main Discussion issue at: #259
Resources
Contact points
Described in the main Discussion issue at: #259
Ticket
No response
The text was updated successfully, but these errors were encountered: