Skip to content
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

demo true error ? #166

Open
malv-c opened this issue Aug 19, 2023 · 1 comment
Open

demo true error ? #166

malv-c opened this issue Aug 19, 2023 · 1 comment

Comments

@malv-c
Copy link

malv-c commented Aug 19, 2023

context changed to "assembly on linux"
--[ Trial 0 ]-----------------
assembly on linux-amd64.asm.d.
This assembler uses amd64 compiler to build the assembly.

In the
command line:
mvn clean install

In the
main.cmd:
cd /app/

In the
pkg/c/c
cd /app/c/c

In the
make.sh:
make -j2

In the
export JAVA_HOME=/path/to/jar/
JAVA_HOME=/path

--[ Trial 1 ]-----------------
assembly on linux
Traceback (most recent call last):
File "/M/rwkv-cpp-accelerated/RWKV_v5_demo.py", line 232, in
tmp = tokenizer.decode(all_tokens[out_last:])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/M/rwkv-cpp-accelerated/RWKV_v5_demo.py", line 77, in decode
return self.decodeBytes(tokens).decode('utf-8')
^^^^^^^^^^^^^^^^^^^^^^^^
File "/M/rwkv-cpp-accelerated/RWKV_v5_demo.py", line 71, in decodeBytes
return b''.join(map(lambda i: self.idx2token[i], tokens))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/M/rwkv-cpp-accelerated/RWKV_v5_demo.py", line 71, in
return b''.join(map(lambda i: self.idx2token[i], tokens))
~~~~~~~~~~~~~~^^^
KeyError: 0

on poor Intel(R) Celeron(R) N4100 it is usable ;)
please make a new demo with langchain and vulkan
thanks

@BlinkDL
Copy link
Owner

BlinkDL commented Jan 26, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants