Run this model with HF Jobs

Run ManishThota/CustomModel 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/ManishThota/CustomModel. 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/ManishThota/CustomModel 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/ManishThota/CustomModel. 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/ManishThota/CustomModel. 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.

how can i solve this problem plz help

#6
by musabumair2004 - opened

You are using a model of type Sparrow to instantiate a model of type imp. This is not supported for all configurations of models and can yield errors.

ValueError Traceback (most recent call last)
in <cell line: 8>()
6
7 #Create model
----> 8 model = AutoModelForCausalLM.from_pretrained(
9 "ManishThota/CustomModel",
10 torch_dtype=torch.float16,

1 frames
/usr/local/lib/python3.10/dist-packages/transformers/models/auto/auto_factory.py in register(cls, config_class, model_class, exist_ok)
581 """
582 if hasattr(model_class, "config_class") and str(model_class.config_class) != str(config_class):
--> 583 raise ValueError(
584 "The model class you are passing has a config_class attribute that is not consistent with the "
585 f"config class you passed (model has {model_class.config_class} and you passed {config_class}. Fix "

ValueError: The model class you are passing has a config_class attribute that is not consistent with the config class you passed (model has <class 'transformers_modules.ManishThota.CustomModel.032bbcb67cf8945d7b88d5837082247c07d3b6b9.configuration_imp.ImpConfig'> and you passed <class 'transformers_modules.ManishThota.CustomModel.032bbcb67cf8945d7b88d5837082247c07d3b6b9.configuration_im.ImpConfig'>. Fix one of those so they match!

Sign up or log in to comment