Run this model with HF Jobs
Run PurCL/src_prober_codellama-13b-last1unfreeze 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/PurCL/src_prober_codellama-13b-last1unfreeze. 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/PurCL/src_prober_codellama-13b-last1unfreeze 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/PurCL/src_prober_codellama-13b-last1unfreeze. 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/PurCL/src_prober_codellama-13b-last1unfreeze. 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.
Instructions to use PurCL/src_prober_codellama-13b-last1unfreeze with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PurCL/src_prober_codellama-13b-last1unfreeze with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PurCL/src_prober_codellama-13b-last1unfreeze")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("PurCL/src_prober_codellama-13b-last1unfreeze", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PurCL/src_prober_codellama-13b-last1unfreeze with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PurCL/src_prober_codellama-13b-last1unfreeze" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PurCL/src_prober_codellama-13b-last1unfreeze", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/PurCL/src_prober_codellama-13b-last1unfreeze
- SGLang
How to use PurCL/src_prober_codellama-13b-last1unfreeze with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "PurCL/src_prober_codellama-13b-last1unfreeze" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PurCL/src_prober_codellama-13b-last1unfreeze", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "PurCL/src_prober_codellama-13b-last1unfreeze" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PurCL/src_prober_codellama-13b-last1unfreeze", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use PurCL/src_prober_codellama-13b-last1unfreeze with Docker Model Runner:
docker model run hf.co/PurCL/src_prober_codellama-13b-last1unfreeze
Training in progress, step 500, checkpoint
Browse filesFiles changed (11)
- checkpoint-500/config.jsonAdded+195
- checkpoint-500/generation_config.jsonAdded+4
- checkpoint-500/model.safetensorsAdded+3
- checkpoint-500/optimizer.ptAdded+3
- checkpoint-500/rng_state_0.pthAdded+3
- checkpoint-500/rng_state_1.pthAdded+3
- checkpoint-500/rng_state_2.pthAdded+3
- checkpoint-500/rng_state_3.pthAdded+3
- checkpoint-500/scheduler.ptAdded+3
- checkpoint-500/trainer_state.jsonAdded+379
- checkpoint-500/training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195{ "architectures": [ "SrcProberForConditionalGeneration" ], "asm_encoder_config": { "_name_or_path": "", "add_cross_attention": false, "architectures": [ "LongelmForMaskedLMWithEdgePrediction" ], "attention_probs_dropout_prob": 0.1, "bad_words_ids": null, "begin_suppress_tokens": null, "block_size": 8, "bos_token_id": 1, "chunk_size_feed_forward": 0, "classifier_dropout": null, "cross_attention_hidden_size": null, "decoder_start_token_id": null, "diversity_penalty": 0.0, "do_sample": false, "early_stopping": false, "encoder_no_repeat_ngram_size": 0, "eos_token_id": 2, "ep_add_linear_projection": true, "exponential_decay_length_penalty": null, "finetuning_task": null, "forced_bos_token_id": null, "forced_eos_token_id": null, "global_memory_size": 1, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "initializer_range": 0.02, "intermediate_size": 3072, "is_decoder": false, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "layer_norm_eps": 1e-12, "length_penalty": 1.0, "max_blocks": 200, "max_length": 20, "max_position_embeddings": 1805, "max_relative_position_embeddings": 8, "min_length": 0, "model_type": "longelm", "no_repeat_ngram_size": 0, "node_size": 1, "num_attention_heads": 12, "num_beam_groups": 1, "num_beams": 1, "num_hidden_layers": 12, "num_return_sequences": 1, "output_attentions": false, "output_hidden_states": false, "output_scores": false, "pad_token_id": 3, "position_embedding_type": "mixed", "prefix": null, "problem_type": null, "pruned_heads": {}, "remove_invalid_values": false, "repetition_penalty": 1.0, "return_dict": true, "return_dict_in_generate": false, "sep_token_id": null, "suppress_tokens": null, "task_specific_params": null, "temperature": 1.0, "tf_legacy_loss": false, "tie_encoder_decoder": false, "tie_word_embeddings": true, "tokenizer_class": null, "top_k": 50, "top_p": 1.0, "torch_dtype": "float32", "torchscript": false, "type_vocab_size": 2, "typical_p": 1.0, "use_bfloat16": false, "use_cache": true, "vocab_size": 50265 }, "asm_feature_select_strategy": "nodes", "asm_token_index": 32016, "ignore_index": -100, "model_type": "rad-prober", "pad_token_id": 2, "projector_hidden_act": "gelu", "src_lm_config": { "_name_or_path": "codellama/CodeLlama-13b-hf", "add_cross_attention": false, "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bad_words_ids": null, "begin_suppress_tokens": null, "bos_token_id": 1, "chunk_size_feed_forward": 0, "cross_attention_hidden_size": null, "decoder_start_token_id": null, "diversity_penalty": 0.0, "do_sample": false, "early_stopping": false, "encoder_no_repeat_ngram_size": 0, "eos_token_id": 2, "exponential_decay_length_penalty": null, "finetuning_task": null, "forced_bos_token_id": null, "forced_eos_token_id": null, "hidden_act": "silu", "hidden_size": 5120, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "initializer_range": 0.02, "intermediate_size": 13824, "is_decoder": false, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "length_penalty": 1.0, "max_length": 20, "max_position_embeddings": 16384, "min_length": 0, "model_type": "llama", "no_repeat_ngram_size": 0, "num_attention_heads": 40, "num_beam_groups": 1, "num_beams": 1, "num_hidden_layers": 40, "num_key_value_heads": 40, "num_return_sequences": 1, "output_attentions": false, "output_hidden_states": false, "output_scores": false, "pad_token_id": null, "prefix": null, "pretraining_tp": 1, "problem_type": null, "pruned_heads": {}, "quantization_config": { "_load_in_4bit": false, "_load_in_8bit": true, "bnb_4bit_compute_dtype": "float32", "bnb_4bit_quant_storage": "uint8", "bnb_4bit_quant_type": "fp4", "bnb_4bit_use_double_quant": false, "llm_int8_enable_fp32_cpu_offload": false, "llm_int8_has_fp16_weight": false, "llm_int8_skip_modules": null, "llm_int8_threshold": 6.0, "load_in_4bit": false, "load_in_8bit": true, "quant_method": "bitsandbytes" }, "remove_invalid_values": false, "repetition_penalty": 1.0, "return_dict": true, "return_dict_in_generate": false, "rms_norm_eps": 1e-05, "rope_scaling": null, "rope_theta": 1000000, "sep_token_id": null, "suppress_tokens": null, "task_specific_params": null, "temperature": 1.0, "tf_legacy_loss": false, "tie_encoder_decoder": false, "tie_word_embeddings": false, "tokenizer_class": null, "top_k": 50, "top_p": 1.0, "torch_dtype": "bfloat16", "torchscript": false, "typical_p": 1.0, "use_bfloat16": false, "use_cache": true, "vocab_size": 32017 }, "torch_dtype": "float32", "transformers_version": "4.39.3"}1234{ "_from_model_config": true, "transformers_version": "4.39.3"}123version https://git-lfs.github.com/spec/v1oid sha256:97a2954d1ea984e824ced1d24c53c58376f92b1fd6666127ab4f82d5fd7d0f78size 620848256123version https://git-lfs.github.com/spec/v1oid sha256:05540d6d8ea733912db63bc75f69249f41504587cd0d3d8ba03eb3796b2f20d4size 297976223123version https://git-lfs.github.com/spec/v1oid sha256:38c59aafd474ee5fd0faf37d860b2545cccc62f101ecec021456558c324efe4fsize 14960123version https://git-lfs.github.com/spec/v1oid sha256:c7050b7c336ab263ea32a6317ab92a0e128f688355724aafc8b18448bd5984d9size 14960123version https://git-lfs.github.com/spec/v1oid sha256:a70f7d9acdbb2cfd3abec5bcd0e43728c98dfe209686a95dbe46d62be22d7ff0size 14960123version https://git-lfs.github.com/spec/v1oid sha256:a80f9f2812da80cd0e89c494b6dcc7e3e6e8b0ffb56bbb3d47301828e667edb6size 14960123version https://git-lfs.github.com/spec/v1oid sha256:fce5f75097acf44fa3921c99b5dc314a613a3e0ceec415094bdb8cf993a059efsize 1064123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379{ "best_metric": null, "best_model_checkpoint": null, "epoch": 0.1208313194780087, "eval_steps": 500, "global_step": 500, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.0, "grad_norm": NaN, "learning_rate": 2.0000000000000002e-07, "loss": 2.0414, "step": 10 }, { "epoch": 0.0, "grad_norm": 53.515953063964844, "learning_rate": 6.5e-07, "loss": 1.8355, "step": 20 }, { "epoch": 0.01, "grad_norm": 27.920907974243164, "learning_rate": 1.15e-06, "loss": 1.5172, "step": 30 }, { "epoch": 0.01, "grad_norm": 20.47172737121582, "learning_rate": 1.65e-06, "loss": 1.2654, "step": 40 }, { "epoch": 0.01, "grad_norm": 8.903529167175293, "learning_rate": 2.1499999999999997e-06, "loss": 1.1095, "step": 50 }, { "epoch": 0.01, "grad_norm": 5.902841567993164, "learning_rate": 2.65e-06, "loss": 1.0017, "step": 60 }, { "epoch": 0.02, "grad_norm": 2.9340908527374268, "learning_rate": 3.1500000000000003e-06, "loss": 0.8846, "step": 70 }, { "epoch": 0.02, "grad_norm": 8.701367378234863, "learning_rate": 3.6499999999999998e-06, "loss": 0.8572, "step": 80 }, { "epoch": 0.02, "grad_norm": 1.3205362558364868, "learning_rate": 4.15e-06, "loss": 0.839, "step": 90 }, { "epoch": 0.02, "grad_norm": 3.0334558486938477, "learning_rate": 4.65e-06, "loss": 0.7838, "step": 100 }, { "epoch": 0.03, "grad_norm": 1.8086520433425903, "learning_rate": 5.15e-06, "loss": 0.7782, "step": 110 }, { "epoch": 0.03, "grad_norm": 29.50135040283203, "learning_rate": 5.65e-06, "loss": 0.7883, "step": 120 }, { "epoch": 0.03, "grad_norm": 3.2708683013916016, "learning_rate": 6.15e-06, "loss": 0.7961, "step": 130 }, { "epoch": 0.03, "grad_norm": 33.43790817260742, "learning_rate": 6.650000000000001e-06, "loss": 0.7626, "step": 140 }, { "epoch": 0.04, "grad_norm": 1.2334959506988525, "learning_rate": 7.15e-06, "loss": 0.7732, "step": 150 }, { "epoch": 0.04, "grad_norm": 1.7489686012268066, "learning_rate": 7.65e-06, "loss": 0.7715, "step": 160 }, { "epoch": 0.04, "grad_norm": 3.358823776245117, "learning_rate": 8.15e-06, "loss": 0.7778, "step": 170 }, { "epoch": 0.04, "grad_norm": 4.348245620727539, "learning_rate": 8.65e-06, "loss": 0.7619, "step": 180 }, { "epoch": 0.05, "grad_norm": 0.9023125767707825, "learning_rate": 9.15e-06, "loss": 0.7746, "step": 190 }, { "epoch": 0.05, "grad_norm": 0.9158114790916443, "learning_rate": 9.65e-06, "loss": 0.7592, "step": 200 }, { "epoch": 0.05, "grad_norm": 0.6256226301193237, "learning_rate": 1.0150000000000001e-05, "loss": 0.7787, "step": 210 }, { "epoch": 0.05, "grad_norm": 0.3805778920650482, "learning_rate": 1.065e-05, "loss": 0.7811, "step": 220 }, { "epoch": 0.06, "grad_norm": 0.6968041062355042, "learning_rate": 1.115e-05, "loss": 0.73, "step": 230 }, { "epoch": 0.06, "grad_norm": 0.9035410284996033, "learning_rate": 1.1650000000000002e-05, "loss": 0.7518, "step": 240 }, { "epoch": 0.06, "grad_norm": 1.6727488040924072, "learning_rate": 1.215e-05, "loss": 0.7805, "step": 250 }, { "epoch": 0.06, "grad_norm": 0.4153461158275604, "learning_rate": 1.2650000000000001e-05, "loss": 0.7706, "step": 260 }, { "epoch": 0.07, "grad_norm": 1.4846651554107666, "learning_rate": 1.3150000000000001e-05, "loss": 0.7492, "step": 270 }, { "epoch": 0.07, "grad_norm": 2.6631388664245605, "learning_rate": 1.3650000000000001e-05, "loss": 0.7681, "step": 280 }, { "epoch": 0.07, "grad_norm": 0.6325013041496277, "learning_rate": 1.415e-05, "loss": 0.7753, "step": 290 }, { "epoch": 0.07, "grad_norm": 0.877907395362854, "learning_rate": 1.465e-05, "loss": 0.7188, "step": 300 }, { "epoch": 0.07, "grad_norm": 0.37142279744148254, "learning_rate": 1.515e-05, "loss": 0.7204, "step": 310 }, { "epoch": 0.08, "grad_norm": 0.7337246537208557, "learning_rate": 1.565e-05, "loss": 0.778, "step": 320 }, { "epoch": 0.08, "grad_norm": 0.5847220420837402, "learning_rate": 1.6150000000000003e-05, "loss": 0.7288, "step": 330 }, { "epoch": 0.08, "grad_norm": 3.745180606842041, "learning_rate": 1.665e-05, "loss": 0.7531, "step": 340 }, { "epoch": 0.08, "grad_norm": 0.357301265001297, "learning_rate": 1.7150000000000004e-05, "loss": 0.7448, "step": 350 }, { "epoch": 0.09, "grad_norm": 0.9032486081123352, "learning_rate": 1.765e-05, "loss": 0.7651, "step": 360 }, { "epoch": 0.09, "grad_norm": 0.2864232361316681, "learning_rate": 1.815e-05, "loss": 0.7193, "step": 370 }, { "epoch": 0.09, "grad_norm": 1.8560261726379395, "learning_rate": 1.865e-05, "loss": 0.7421, "step": 380 }, { "epoch": 0.09, "grad_norm": 0.2971792221069336, "learning_rate": 1.915e-05, "loss": 0.7171, "step": 390 }, { "epoch": 0.1, "grad_norm": 0.40850627422332764, "learning_rate": 1.9650000000000003e-05, "loss": 0.7459, "step": 400 }, { "epoch": 0.1, "grad_norm": 0.3934139311313629, "learning_rate": 2.0150000000000002e-05, "loss": 0.7205, "step": 410 }, { "epoch": 0.1, "grad_norm": 1.8674131631851196, "learning_rate": 2.065e-05, "loss": 0.752, "step": 420 }, { "epoch": 0.1, "grad_norm": 0.36707818508148193, "learning_rate": 2.115e-05, "loss": 0.7494, "step": 430 }, { "epoch": 0.11, "grad_norm": 0.5044310092926025, "learning_rate": 2.165e-05, "loss": 0.7595, "step": 440 }, { "epoch": 0.11, "grad_norm": 1.9025150537490845, "learning_rate": 2.215e-05, "loss": 0.7379, "step": 450 }, { "epoch": 0.11, "grad_norm": 0.5004140138626099, "learning_rate": 2.265e-05, "loss": 0.7886, "step": 460 }, { "epoch": 0.11, "grad_norm": 3.544482707977295, "learning_rate": 2.3150000000000004e-05, "loss": 0.7259, "step": 470 }, { "epoch": 0.12, "grad_norm": 0.33023321628570557, "learning_rate": 2.365e-05, "loss": 0.7333, "step": 480 }, { "epoch": 0.12, "grad_norm": 0.3548080325126648, "learning_rate": 2.415e-05, "loss": 0.7527, "step": 490 }, { "epoch": 0.12, "grad_norm": 0.42450150847435, "learning_rate": 2.465e-05, "loss": 0.7443, "step": 500 }, { "epoch": 0.12, "eval_loss": 0.7428915500640869, "eval_runtime": 68.3143, "eval_samples_per_second": 29.276, "eval_steps_per_second": 0.922, "step": 500 } ], "logging_steps": 10, "max_steps": 20690, "num_input_tokens_seen": 0, "num_train_epochs": 5, "save_steps": 500, "total_flos": 1.0807388003190702e+18, "train_batch_size": 4, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:fd6a31d2da7b4686068d511137b843e541147626d5878a410233f3ef91ae5dc6size 5048checkpoint-500/config.jsonAdded+195
checkpoint-500/generation_config.jsonAdded+4
checkpoint-500/model.safetensorsAdded+3
checkpoint-500/optimizer.ptAdded+3
checkpoint-500/rng_state_0.pthAdded+3
checkpoint-500/rng_state_1.pthAdded+3
checkpoint-500/rng_state_2.pthAdded+3
checkpoint-500/rng_state_3.pthAdded+3
checkpoint-500/scheduler.ptAdded+3
checkpoint-500/trainer_state.jsonAdded+379
checkpoint-500/training_args.binAdded+3