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

Inference doesn't work on Apple Macbook even when using CPU fp32 as strategy #192

Open
fredsco opened this issue Jan 30, 2024 · 1 comment

Comments

@fredsco
Copy link

fredsco commented Jan 30, 2024

model = RWKV(model='RWKV-5-World-7B-v2-20240128-ctx4096', strategy='mps fp32')
pipeline = PIPELINE(model, "20B_tokenizer.json") # 20B_tokenizer.json is in https://github.com/BlinkDL/ChatRWKV

ctx = "Assistant: Sure! Here is a very detailed plan to create flying pigs:"
print(ctx, end='')

Outpout:

Assistant: Sure! Here is a very detailed plan to create flying pigs:0029 Comedy[ mah ComedyN Minutes[ mah ComedyN[ mah ComedyNmong[ mah ComedyN ArcherN Dou[ mah ComedyNiduc[ automation agent

@BlinkDL
Copy link
Owner

BlinkDL commented Feb 5, 2024

use pipeline = PIPELINE(model, "rwkv_vocab_v20230424") for rwkv "world" models

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