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

it does not generate the same token or meaningful tokens with llama3.2-1B #29

Open
chakpongchung opened this issue Jan 3, 2025 · 0 comments

Comments

@chakpongchung
Copy link

I tried to use the same prompt from this example and compare the output tokens with those from vllm with llama3.2-1B.
https://github.com/vllm-project/vllm/blob/main/examples/offline_inference.py#L5

It does not generate the expected outcome. To reproduce it, I use the following prompt and seed:

    prompt = "Hello, my name is"
    random.seed(32)
    torch.manual_seed(32)
    output_text = tokenizer.decode(output_ids)
    print(f'output_text: {output_text}') # output_text: ersetvod
    

Looks like it is missing a prefill step.

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

1 participant