Instructions to use Wilsonwin/checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Wilsonwin/checkpoints with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Wilsonwin/checkpoints")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Wilsonwin/checkpoints") model = AutoModelForCausalLM.from_pretrained("Wilsonwin/checkpoints", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Wilsonwin/checkpoints with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Wilsonwin/checkpoints" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Wilsonwin/checkpoints", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Wilsonwin/checkpoints
- SGLang
How to use Wilsonwin/checkpoints 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 "Wilsonwin/checkpoints" \ --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": "Wilsonwin/checkpoints", "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 "Wilsonwin/checkpoints" \ --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": "Wilsonwin/checkpoints", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Wilsonwin/checkpoints with Docker Model Runner:
docker model run hf.co/Wilsonwin/checkpoints
Training in progress, step 14, checkpoint
Browse filesFiles changed (10)
- last-checkpoint/config.jsonAdded+35
- last-checkpoint/generation_config.jsonAdded+12
- last-checkpoint/model.safetensorsAdded+3
- last-checkpoint/optimizer.ptAdded+3
- last-checkpoint/rng_state.pthAdded+3
- last-checkpoint/scheduler.ptAdded+3
- last-checkpoint/tokenizer.jsonAdded+144
- last-checkpoint/tokenizer_config.jsonAdded+13
- last-checkpoint/trainer_state.jsonAdded+48
- last-checkpoint/training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132333435{ "activation_function": "gelu_new", "add_cross_attention": false, "architectures": [ "GPT2LMHeadModel" ], "attn_pdrop": 0.0, "bos_token_id": 1, "dtype": "float32", "embd_pdrop": 0.0, "eos_token_id": 2, "initializer_range": 0.02, "layer_norm_epsilon": 1e-05, "model_type": "gpt2", "n_ctx": 1024, "n_embd": 768, "n_head": 12, "n_inner": 3072, "n_layer": 8, "n_positions": 1024, "pad_token_id": 3, "reorder_and_upcast_attn": false, "resid_pdrop": 0.0, "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, "tie_word_embeddings": true, "transformers_version": "5.0.0", "use_cache": false, "vocab_size": 4}123456789101112{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": [ 2 ], "output_attentions": false, "output_hidden_states": false, "pad_token_id": 3, "transformers_version": "5.0.0", "use_cache": true}123version https://git-lfs.github.com/spec/v1oid sha256:9e7506a1280aec2dd18c1213ed1020dae2e07f4f943a5bd4dd04540876174160size 229986128123version https://git-lfs.github.com/spec/v1oid sha256:8570213bcbaacf39c48f95d9aef6027fc1317ef916ca936ef3f3e3b83eb71b21size 122063307123version https://git-lfs.github.com/spec/v1oid sha256:61c19bab1174704a4a4441475683bf1270277af15d2e2c95e964789128e482c4size 14645123version https://git-lfs.github.com/spec/v1oid sha256:2458121b795ce86cf99025460230b02abd4a71e9c5777618f7febb360b86c2e1size 1465123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144{ "version": "1.0", "truncation": null, "padding": null, "added_tokens": [ { "id": 0, "content": "<unk>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, { "id": 1, "content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, { "id": 2, "content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, { "id": 3, "content": "<pad>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true } ], "normalizer": null, "pre_tokenizer": { "type": "Metaspace", "replacement": "▁", "prepend_scheme": "first", "split": false }, "post_processor": { "type": "TemplateProcessing", "single": [ { "Sequence": { "id": "A", "type_id": 0 } }, { "SpecialToken": { "id": "</s>", "type_id": 0 } } ], "pair": [ { "Sequence": { "id": "A", "type_id": 0 } }, { "SpecialToken": { "id": "</s>", "type_id": 0 } }, { "Sequence": { "id": "B", "type_id": 1 } }, { "SpecialToken": { "id": "</s>", "type_id": 1 } } ], "special_tokens": { "</s>": { "id": "</s>", "ids": [ 2 ], "tokens": [ "</s>" ] } } }, "decoder": { "type": "Sequence", "decoders": [ { "type": "Replace", "pattern": { "String": "▁" }, "content": " " }, { "type": "ByteFallback" }, { "type": "Fuse" }, { "type": "Strip", "content": " ", "start": 1, "stop": 0 } ] }, "model": { "type": "BPE", "dropout": null, "unk_token": null, "continuing_subword_prefix": null, "end_of_word_suffix": null, "fuse_unk": true, "byte_fallback": true, "ignore_merges": false, "vocab": { "<unk>": 0, "<s>": 1, "</s>": 2 }, "merges": [] }}12345678910111213{ "add_prefix_space": null, "backend": "tokenizers", "bos_token": "<s>", "clean_up_tokenization_spaces": false, "eos_token": "</s>", "is_local": true, "model_max_length": 1000000000000000019884624838656, "pad_token": "<pad>", "tokenizer_class": "TokenizersBackend", "unk_token": "<unk>", "use_default_system_prompt": false}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ "best_global_step": null, "best_metric": null, "best_model_checkpoint": null, "epoch": 2.0, "eval_steps": 500, "global_step": 14, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.14285714285714285, "grad_norm": 78.03356170654297, "learning_rate": 0.0, "loss": 1.7032254934310913, "step": 1 }, { "epoch": 1.4285714285714286, "grad_norm": 45.858306884765625, "learning_rate": 1.3499999999999998e-06, "loss": 1.292690912882487, "step": 10 } ], "logging_steps": 10, "max_steps": 14, "num_input_tokens_seen": 0, "num_train_epochs": 2, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": true }, "attributes": {} } }, "total_flos": 440368147464192.0, "train_batch_size": 48, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:4b2c5bf738d3dfdf4bb29b32f549e85540e511a9724f3a1b5d213bbd748c534csize 5201last-checkpoint/config.jsonAdded+35
last-checkpoint/generation_config.jsonAdded+12
last-checkpoint/model.safetensorsAdded+3
last-checkpoint/optimizer.ptAdded+3
last-checkpoint/rng_state.pthAdded+3
last-checkpoint/scheduler.ptAdded+3
last-checkpoint/tokenizer.jsonAdded+144
last-checkpoint/tokenizer_config.jsonAdded+13
last-checkpoint/trainer_state.jsonAdded+48
last-checkpoint/training_args.binAdded+3