Run this model with HF Jobs

Run WizardLMTeam/WizardCoder-Python-34B-V1.0 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/WizardLMTeam/WizardCoder-Python-34B-V1.0. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/WizardLMTeam/WizardCoder-Python-34B-V1.0 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/WizardLMTeam/WizardCoder-Python-34B-V1.0. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/WizardLMTeam/WizardCoder-Python-34B-V1.0. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

RuntimeError: probability tensor contains either inf, nan or element < 0

#21
by FrankWu - opened

I meet this issue "RuntimeError: probability tensor contains either inf, nan or element < 0",my gpu is V100. Is there anyone no why?

I ran into this problem with 7B model. I have solved it by using bf16 precision and replacing model.half() with model.bfloat16(). Maybe you can try this.

aha,V100 doesn't support bf16. It is said that fp16 usually is ok to do inference.But i also found

图片.png

It seems that codellama is pretrained with bf16 codellama

haha, I found this solution

I ran into this problem with 7B model. I have solved it by using bf16 precision and replacing model.half() with model.bfloat16(). Maybe you can try this.

using llama keyword which is the foundation model 🤣

maybe you can try fp32 or 8/4bit

set load_8_bit or load_4_bit =True, it's ok. But set torch_dtype=torch.float32 is still NG. It's very strange

Maybe this is just Wizardcode issue, i try another codellama version ok

FrankWu changed discussion status to closed

Sign up or log in to comment