Run this model with HF Jobs

Run bigcode/starcoder2-15b 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/bigcode/starcoder2-15b. 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/bigcode/starcoder2-15b 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/bigcode/starcoder2-15b. 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/bigcode/starcoder2-15b. 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.

Deployment issue in AWS Sagemaker and GCP

#22
by ashwincv0112 - opened

Hi Team,

Tried deploying the Starcoder2-15B model both in AWS Sagemaker and GCP.

In both the platforms, the deployment is failing with the below error:

raise ValueError(\nValueError: The checkpoint you are trying to load has model type starcoder2 but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

For Sagemaker, followed the same step mentioned in the Deployment tab.


get_huggingface_llm_image_uri('huggingface',
version="1.4.2", session=sess)

'model_id' : 'bigcode/starcoder2-15b',
'instance_type' : 'ml.g5.2xlarge',
'num_gpus' : '1',

hp = hyperparameters(config)

create HuggingFaceModel with the image uri

llm_model = HuggingFaceModel(
role=role,
image_uri=llm_model_image,
env=hp
)

estimator = llm_model.deploy(
initial_instance_count=1,
instance_type=config['instance_type'],
endpoint_name=config['endpoint_name'],
container_startup_health_check_timeout=600, # 10 minutes to be able to load the model
)


In a stand alone notebook, I am able to download the model using Transformer 4.39.2 version.

Could you please help in deploying this model in Sagemaker/ GCP.

Sign up or log in to comment