Run this model with HF Jobs
Run harpertoken/chat 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/harpertoken/chat. 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/harpertoken/chat 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/harpertoken/chat. 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/harpertoken/chat. 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 harpertoken/chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use harpertoken/chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="harpertoken/chat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("harpertoken/chat") model = AutoModelForCausalLM.from_pretrained("harpertoken/chat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use harpertoken/chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "harpertoken/chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "harpertoken/chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/harpertoken/chat
- SGLang
How to use harpertoken/chat 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 "harpertoken/chat" \ --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": "harpertoken/chat", "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 "harpertoken/chat" \ --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": "harpertoken/chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use harpertoken/chat with Docker Model Runner:
docker model run hf.co/harpertoken/chat
Niladri Das 🦊 commited on
Upload fine-tuned conversational AI model
Browse filesFiles changed (36)
- added_tokens.jsonAdded+3
- checkpoint-3000/config.jsonAdded+39
- checkpoint-3000/generation_config.jsonAdded+6
- checkpoint-3000/optimizer.ptAdded+3
- checkpoint-3000/pytorch_model.binAdded+3
- checkpoint-3000/rng_state.pthAdded+3
- checkpoint-3000/scheduler.ptAdded+3
- checkpoint-3000/trainer_state.jsonAdded+68
- checkpoint-3000/training_args.binAdded+3
- checkpoint-3500/config.jsonAdded+39
- checkpoint-3500/generation_config.jsonAdded+6
- checkpoint-3500/optimizer.ptAdded+3
- checkpoint-3500/pytorch_model.binAdded+3
- checkpoint-3500/rng_state.pthAdded+3
- checkpoint-3500/scheduler.ptAdded+3
- checkpoint-3500/trainer_state.jsonAdded+74
- checkpoint-3500/training_args.binAdded+3
- config.jsonAdded+39
- generation_config.jsonAdded+6
- merges.txtAdded
- pytorch_model.binAdded+3
- runs/Feb23_19-50-33_Niladris-MacBook-Air.local/1740320433.63562/events.out.tfevents.1740320433.Niladris-MacBook-Air.local.15447.1Added+3
- runs/Feb23_19-50-33_Niladris-MacBook-Air.local/events.out.tfevents.1740320433.Niladris-MacBook-Air.local.15447.0Added+3
- runs/Feb23_19-55-02_Niladris-MacBook-Air.local/1740320703.005991/events.out.tfevents.1740320703.Niladris-MacBook-Air.local.16330.1Added+3
- runs/Feb23_19-55-02_Niladris-MacBook-Air.local/events.out.tfevents.1740320703.Niladris-MacBook-Air.local.16330.0Added+3
- runs/Feb23_19-59-16_Niladris-MacBook-Air.local/1740320956.977622/events.out.tfevents.1740320956.Niladris-MacBook-Air.local.16794.1Added+3
- runs/Feb23_19-59-16_Niladris-MacBook-Air.local/events.out.tfevents.1740320956.Niladris-MacBook-Air.local.16794.0Added+3
- runs/Feb23_21-04-45_Niladris-MacBook-Air.local/1740324886.016059/events.out.tfevents.1740324886.Niladris-MacBook-Air.local.20955.1Added+3
- runs/Feb23_21-04-45_Niladris-MacBook-Air.local/events.out.tfevents.1740324886.Niladris-MacBook-Air.local.20955.0Added+3
- runs/Feb23_21-08-37_Niladris-MacBook-Air.local/1740325117.034147/events.out.tfevents.1740325117.Niladris-MacBook-Air.local.21268.1Added+3
- runs/Feb23_21-08-37_Niladris-MacBook-Air.local/events.out.tfevents.1740325117.Niladris-MacBook-Air.local.21268.0Added+3
- special_tokens_map.jsonAdded+6
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+9
- training_args.binAdded+3
- vocab.jsonAdded
123{ "[PAD]": 50257}123456789101112131415161718192021222324252627282930313233343536373839{ "_name_or_path": "gpt2", "activation_function": "gelu_new", "architectures": [ "GPT2LMHeadModel" ], "attn_pdrop": 0.1, "bos_token_id": 50256, "embd_pdrop": 0.1, "eos_token_id": 50256, "initializer_range": 0.02, "layer_norm_epsilon": 1e-05, "model_type": "gpt2", "n_ctx": 1024, "n_embd": 768, "n_head": 12, "n_inner": null, "n_layer": 12, "n_positions": 1024, "reorder_and_upcast_attn": false, "resid_pdrop": 0.1, "scale_attn_by_inverse_layer_idx": false, "scale_attn_weights": true, "summary_activation": null, "summary_first_dropout": 0.1, "summary_proj_to_labels": true, "summary_type": "cls_index", "summary_use_proj": true, "task_specific_params": { "text-generation": { "do_sample": true, "max_length": 50 } }, "torch_dtype": "float32", "transformers_version": "4.28.1", "use_cache": true, "vocab_size": 50258}123456{ "_from_model_config": true, "bos_token_id": 50256, "eos_token_id": 50256, "transformers_version": "4.28.1"}123version https://git-lfs.github.com/spec/v1oid sha256:f0276b81ff098c3b14fb29b15314bf3f6990c22ab8311d19928f15f0385c0e7csize 995607173123version https://git-lfs.github.com/spec/v1oid sha256:5f92f0404692b5d46667d7e667ca81bbda52cea4d95cdc09fed7a837cb7b91d4size 510398653123version https://git-lfs.github.com/spec/v1oid sha256:5dc1b860ca2cc776b1b2bf2bb8290ce5e0bb511759efc5a9d1955b2bf4f5fe58size 13553123version https://git-lfs.github.com/spec/v1oid sha256:dbdc2e29d939578fc4c0291d4ecc220994406c44a5bfcd16c19948f53978ac12size 6271234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ "best_metric": null, "best_model_checkpoint": null, "epoch": 2.4, "global_step": 3000, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.4, "learning_rate": 1.7333333333333336e-05, "loss": 3.1868, "step": 500 }, { "epoch": 0.8, "learning_rate": 1.4666666666666666e-05, "loss": 1.9989, "step": 1000 }, { "epoch": 1.0, "eval_loss": 1.985045313835144, "eval_runtime": 997.7945, "eval_samples_per_second": 10.022, "eval_steps_per_second": 1.253, "step": 1250 }, { "epoch": 1.2, "learning_rate": 1.2e-05, "loss": 1.9389, "step": 1500 }, { "epoch": 1.6, "learning_rate": 9.333333333333334e-06, "loss": 1.8992, "step": 2000 }, { "epoch": 2.0, "learning_rate": 6.666666666666667e-06, "loss": 1.8668, "step": 2500 }, { "epoch": 2.0, "eval_loss": 1.9320968389511108, "eval_runtime": 1179.2887, "eval_samples_per_second": 8.48, "eval_steps_per_second": 1.06, "step": 2500 }, { "epoch": 2.4, "learning_rate": 4.000000000000001e-06, "loss": 1.8505, "step": 3000 } ], "max_steps": 3750, "num_train_epochs": 3, "total_flos": 1567752192000000.0, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:6c3de59169804b003fabfd560ee4510ebdc845ec2aa625b6ef18675e134aa1d3size 3579123456789101112131415161718192021222324252627282930313233343536373839{ "_name_or_path": "gpt2", "activation_function": "gelu_new", "architectures": [ "GPT2LMHeadModel" ], "attn_pdrop": 0.1, "bos_token_id": 50256, "embd_pdrop": 0.1, "eos_token_id": 50256, "initializer_range": 0.02, "layer_norm_epsilon": 1e-05, "model_type": "gpt2", "n_ctx": 1024, "n_embd": 768, "n_head": 12, "n_inner": null, "n_layer": 12, "n_positions": 1024, "reorder_and_upcast_attn": false, "resid_pdrop": 0.1, "scale_attn_by_inverse_layer_idx": false, "scale_attn_weights": true, "summary_activation": null, "summary_first_dropout": 0.1, "summary_proj_to_labels": true, "summary_type": "cls_index", "summary_use_proj": true, "task_specific_params": { "text-generation": { "do_sample": true, "max_length": 50 } }, "torch_dtype": "float32", "transformers_version": "4.28.1", "use_cache": true, "vocab_size": 50258}123456{ "_from_model_config": true, "bos_token_id": 50256, "eos_token_id": 50256, "transformers_version": "4.28.1"}123version https://git-lfs.github.com/spec/v1oid sha256:1e262cf803f368535170a97fb0a736c037db4638daa20ebe171677b4a8e49cabsize 995607173123version https://git-lfs.github.com/spec/v1oid sha256:244a093d4758f2930e06904bb5ea2b5a1b80bfdf1f094d458a6c4980c8fb884bsize 510398653123version https://git-lfs.github.com/spec/v1oid sha256:50d5bb56406884b635bb14258a2225b6afdb8bc58ac25ffd83159882562e3a84size 13553123version https://git-lfs.github.com/spec/v1oid sha256:66d1e37d77ae48420c7f91bbfc458b7c7efd68cd2532a891d8331036a22a914asize 6271234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ "best_metric": null, "best_model_checkpoint": null, "epoch": 2.8, "global_step": 3500, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.4, "learning_rate": 1.7333333333333336e-05, "loss": 3.1868, "step": 500 }, { "epoch": 0.8, "learning_rate": 1.4666666666666666e-05, "loss": 1.9989, "step": 1000 }, { "epoch": 1.0, "eval_loss": 1.985045313835144, "eval_runtime": 997.7945, "eval_samples_per_second": 10.022, "eval_steps_per_second": 1.253, "step": 1250 }, { "epoch": 1.2, "learning_rate": 1.2e-05, "loss": 1.9389, "step": 1500 }, { "epoch": 1.6, "learning_rate": 9.333333333333334e-06, "loss": 1.8992, "step": 2000 }, { "epoch": 2.0, "learning_rate": 6.666666666666667e-06, "loss": 1.8668, "step": 2500 }, { "epoch": 2.0, "eval_loss": 1.9320968389511108, "eval_runtime": 1179.2887, "eval_samples_per_second": 8.48, "eval_steps_per_second": 1.06, "step": 2500 }, { "epoch": 2.4, "learning_rate": 4.000000000000001e-06, "loss": 1.8505, "step": 3000 }, { "epoch": 2.8, "learning_rate": 1.3333333333333334e-06, "loss": 1.8329, "step": 3500 } ], "max_steps": 3750, "num_train_epochs": 3, "total_flos": 1829044224000000.0, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:6c3de59169804b003fabfd560ee4510ebdc845ec2aa625b6ef18675e134aa1d3size 3579123456789101112131415161718192021222324252627282930313233343536373839{ "_name_or_path": "gpt2", "activation_function": "gelu_new", "architectures": [ "GPT2LMHeadModel" ], "attn_pdrop": 0.1, "bos_token_id": 50256, "embd_pdrop": 0.1, "eos_token_id": 50256, "initializer_range": 0.02, "layer_norm_epsilon": 1e-05, "model_type": "gpt2", "n_ctx": 1024, "n_embd": 768, "n_head": 12, "n_inner": null, "n_layer": 12, "n_positions": 1024, "reorder_and_upcast_attn": false, "resid_pdrop": 0.1, "scale_attn_by_inverse_layer_idx": false, "scale_attn_weights": true, "summary_activation": null, "summary_first_dropout": 0.1, "summary_proj_to_labels": true, "summary_type": "cls_index", "summary_use_proj": true, "task_specific_params": { "text-generation": { "do_sample": true, "max_length": 50 } }, "torch_dtype": "float32", "transformers_version": "4.28.1", "use_cache": true, "vocab_size": 50258}123456{ "_from_model_config": true, "bos_token_id": 50256, "eos_token_id": 50256, "transformers_version": "4.28.1"}123version https://git-lfs.github.com/spec/v1oid sha256:f9d4469a1f8d8b40db4fe4ded15e67da46a0e62d2f54912821c0286d26d77336size 510398653123version https://git-lfs.github.com/spec/v1oid sha256:79754ebcc32a4406f9958a3e914e15f4aafc32b52771efdced8e306a0e95f32dsize 5890123version https://git-lfs.github.com/spec/v1oid sha256:0d9c0b6272d5852be44313fd691b3c76afd099f0d6a9eb0420e9a9f11ce86365size 3941123version https://git-lfs.github.com/spec/v1oid sha256:df5c6cc80393b78ba66ad8e7e67a26f461aecbdeacf6d0500d51e853c78012afsize 5890123version https://git-lfs.github.com/spec/v1oid sha256:f398c227d56e2bca48a5ea3f5c6be317a066c9a9b29dc7d4078b472b0c810932size 4242123version https://git-lfs.github.com/spec/v1oid sha256:6b3ec83d4ef24483ef60cc4af74650afbd82a7284e195f061ad4589cb76b513csize 5890123version https://git-lfs.github.com/spec/v1oid sha256:76069675841c1d9a3da74b94125260233f3cde7091e13d2ffe2152f62b2c9f0csize 4556123version https://git-lfs.github.com/spec/v1oid sha256:af2783a52b83f290228798b1807054fa49a26565e7db853ec3a88975f554da29size 5890123version https://git-lfs.github.com/spec/v1oid sha256:554bd899dc3110d81d04708945c6f67b7376ede935473ce95ad346dafb14bff5size 4242123version https://git-lfs.github.com/spec/v1oid sha256:8edc1b86197fa8d08c749fb60c6145d801ca36b616fba9b4f6269b29e3354a0csize 5890123version https://git-lfs.github.com/spec/v1oid sha256:5b597dfe8c735753816a7fd747caaaf89a9fc255b094ecba55ce0c4891169e59size 6508123456{ "bos_token": "<|endoftext|>", "eos_token": "<|endoftext|>", "pad_token": "[PAD]", "unk_token": "<|endoftext|>"}123456789{ "add_prefix_space": false, "bos_token": "<|endoftext|>", "clean_up_tokenization_spaces": true, "eos_token": "<|endoftext|>", "model_max_length": 1024, "tokenizer_class": "GPT2Tokenizer", "unk_token": "<|endoftext|>"}123version https://git-lfs.github.com/spec/v1oid sha256:6c3de59169804b003fabfd560ee4510ebdc845ec2aa625b6ef18675e134aa1d3size 3579added_tokens.jsonAdded+3
checkpoint-3000/config.jsonAdded+39
checkpoint-3000/generation_config.jsonAdded+6
checkpoint-3000/optimizer.ptAdded+3
checkpoint-3000/pytorch_model.binAdded+3
checkpoint-3000/rng_state.pthAdded+3
checkpoint-3000/scheduler.ptAdded+3
checkpoint-3000/trainer_state.jsonAdded+68
checkpoint-3000/training_args.binAdded+3
checkpoint-3500/config.jsonAdded+39
checkpoint-3500/generation_config.jsonAdded+6
checkpoint-3500/optimizer.ptAdded+3
checkpoint-3500/pytorch_model.binAdded+3
checkpoint-3500/rng_state.pthAdded+3
checkpoint-3500/scheduler.ptAdded+3
checkpoint-3500/trainer_state.jsonAdded+74
checkpoint-3500/training_args.binAdded+3
config.jsonAdded+39
generation_config.jsonAdded+6
merges.txtAdded
pytorch_model.binAdded+3
runs/Feb23_19-50-33_Niladris-MacBook-Air.local/1740320433.63562/events.out.tfevents.1740320433.Niladris-MacBook-Air.local.15447.1Added+3
runs/Feb23_19-50-33_Niladris-MacBook-Air.local/events.out.tfevents.1740320433.Niladris-MacBook-Air.local.15447.0Added+3
runs/Feb23_19-55-02_Niladris-MacBook-Air.local/1740320703.005991/events.out.tfevents.1740320703.Niladris-MacBook-Air.local.16330.1Added+3
runs/Feb23_19-55-02_Niladris-MacBook-Air.local/events.out.tfevents.1740320703.Niladris-MacBook-Air.local.16330.0Added+3
runs/Feb23_19-59-16_Niladris-MacBook-Air.local/1740320956.977622/events.out.tfevents.1740320956.Niladris-MacBook-Air.local.16794.1Added+3
runs/Feb23_19-59-16_Niladris-MacBook-Air.local/events.out.tfevents.1740320956.Niladris-MacBook-Air.local.16794.0Added+3
runs/Feb23_21-04-45_Niladris-MacBook-Air.local/1740324886.016059/events.out.tfevents.1740324886.Niladris-MacBook-Air.local.20955.1Added+3
runs/Feb23_21-04-45_Niladris-MacBook-Air.local/events.out.tfevents.1740324886.Niladris-MacBook-Air.local.20955.0Added+3
runs/Feb23_21-08-37_Niladris-MacBook-Air.local/1740325117.034147/events.out.tfevents.1740325117.Niladris-MacBook-Air.local.21268.1Added+3
runs/Feb23_21-08-37_Niladris-MacBook-Air.local/events.out.tfevents.1740325117.Niladris-MacBook-Air.local.21268.0Added+3
special_tokens_map.jsonAdded+6
tokenizer.jsonAdded
tokenizer_config.jsonAdded+9
training_args.binAdded+3
vocab.jsonAdded