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

What is the cause of process interruption during model conversion? #7

Closed
Han-WG opened this issue Mar 27, 2024 · 2 comments
Closed

Comments

@Han-WG
Copy link

Han-WG commented Mar 27, 2024

Screenshot from 2024-03-27 17-02-24
system memory : 64GB
IDEA memory : 16GB
model name : LLaMA-7b

@Han-WG
Copy link
Author

Han-WG commented Mar 27, 2024

code :
`from rkllm.api import RKLLM

modelpath = .../llama-1'
llm = RKLLM()

Load model

ret = llm.load_huggingface(model=modelpath)
if ret != 0:
print('Load model failed!')
exit(ret)

Build model

ret = llm.build(do_quantization=True, optimization_level=1, quantized_dtype='w8a8', target_platform='rk3588')
if ret != 0:
print('Build model failed!')
exit(ret)

Export rknn model

ret = llm.export_rkllm("./llama-7b.rkllm")
if ret != 0:
print('Export model failed!')
exit(ret)`

@Han-WG Han-WG closed this as completed Mar 28, 2024
@noah003
Copy link

noah003 commented Apr 8, 2024

Hi, have you been able to successfully convert the model? @Han-WG

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