Run this model with HF Jobs

Run TheBloke/phi-2-GGUF 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/TheBloke/phi-2-GGUF. 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/TheBloke/phi-2-GGUF 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/TheBloke/phi-2-GGUF. 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.

Unable to finetune using llama cpp

#13
by vegito07 - opened

I am getting error while finetuning phi-2 .

Same is working when trying to finetune llama-7b.

Using this command to finetune -> llama.cpp/finetune --model-base phi-2.Q2_K.gguf --train-data input.jsonl --threads 14 --sample-start ""

Checked the code. Seems like expected_arch is always hardcoded to llama

Error -
llama_new_context_with_model: n_ctx = 512
llama_new_context_with_model: freq_base = 10000.0
llama_new_context_with_model: freq_scale = 1
llama_kv_cache_init: CPU KV buffer size = 160.00 MiB
llama_new_context_with_model: KV self size = 160.00 MiB, K (f16): 80.00 MiB, V (f16): 80.00 MiB
llama_new_context_with_model: CPU input buffer size = 7.01 MiB
llama_new_context_with_model: CPU compute buffer size = 105.00 MiB
llama_new_context_with_model: graph splits (measure): 1
load_model_hparams_gguf: arch=phi2 expected_arch=llama
GGML_ASSERT: examples/finetune/finetune.cpp:242: arch == expected_arch
zsh: abort llama.cpp/finetune --model-base phi-2.Q2_K.gguf --train-data input.jsonl 14

Sign up or log in to comment