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.

wrong bos_token

#15
by loubnabnl - opened

The bos_token in special_tokens_map.json seems to be </s> when it should be <s> since that's the token being added at start of each sequence (id 1)

tokenizer = AutoTokenizer.from_pretrained("WizardLM/WizardCoder-Python-34B-V1.0")
>>> tokenizer.bos_token
'</s>'
>>> tokenizer.bos_token_id
2
>>> tokenizer("</s>")
{'input_ids': [1, 2], 'attention_mask': [1, 1]}
WizardLM Team org

During training, we set bos_token and eos_token to be the same </s>.

I see, but in this case shouldn't the bos_token be changed in tokenizer_config to be </s> for consistency so it's the token that gets added at the beginning?

WizardLM Team org

I have done an extra experiment to change the bos_token in the tokenizer_config to </s> on our WizardLM/WizardCoder-Python-7B-V1.0. The humaneval score decreases from 55.5 to 51.2. Therefore, we cannot modify the bos_token in the tokenizer_config.

WizardLM changed discussion status to closed

Sign up or log in to comment