Run this model with HF Jobs

Run SkyworkAIGC/SkyCode 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/SkyworkAIGC/SkyCode. 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/SkyworkAIGC/SkyCode 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/SkyworkAIGC/SkyCode. 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/SkyworkAIGC/SkyCode. 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.

Trying huggingface API Failed, please help.

#1
by forhonourlx - opened
import requests

API_URL = "https://api-inference.huggingface.co/models/SkyWork/SkyCode"
headers = {"Authorization": "Bearer hf_........................................."}

def query(payload):
    response = requests.post(API_URL, headers=headers, json=payload)
    return response.json()
    
output = query({
    "inputs": "if __name__ == ",
})
print(output)

{'error': "Can't load tokenizer using from_pretrained, please update its configuration: Loading SkyWork/SkyCode requires you to execute the tokenizer file in that repo on your local machine. Make sure you have read the code there to avoid malicious use, then set the option trust_remote_code=True to remove this error."}

Sorry, current the Sky models are not available via hugging-face API. Feel Free to Get the model parameters via:

from transformers import GPT2LMHeadModel
from transformers import AutoTokenizer
model = GPT2LMHeadModel.from_pretrained("SkyWork/SkyCode")
tokenizer = AutoTokenizer.from_pretrained("SkyWork/SkyCode", trust_remote_code=True)

Sign up or log in to comment