Instructions to use yosa722/testing with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use yosa722/testing with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B-Instruct-2507") model = PeftModel.from_pretrained(base_model, "yosa722/testing") - Transformers
How to use yosa722/testing with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yosa722/testing") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("yosa722/testing", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yosa722/testing with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yosa722/testing" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yosa722/testing", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/yosa722/testing
- SGLang
How to use yosa722/testing 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 "yosa722/testing" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yosa722/testing", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "yosa722/testing" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yosa722/testing", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use yosa722/testing with Docker Model Runner:
docker model run hf.co/yosa722/testing
Download trainer_state.json from yosa722/testing: direct link, hf CLI and curl.
- Browser
- Download file 12.5 kB
-
https://huggingface.co/yosa722/testing/resolve/main/trainer_state.json
- Command line
-
hf download hf://yosa722/testing/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/yosa722/testing/resolve/main/trainer_state.json
12.5 kB
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 0.9958333333333333, | |
| "eval_steps": 500, | |
| "global_step": 239, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.020833333333333332, | |
| "grad_norm": 7.299312114715576, | |
| "learning_rate": 3.657142857142857e-06, | |
| "loss": 0.2519, | |
| "mean_token_accuracy": 0.9747343540191651, | |
| "num_tokens": 246040.0, | |
| "step": 5 | |
| }, | |
| { | |
| "epoch": 0.041666666666666664, | |
| "grad_norm": 1.5170060396194458, | |
| "learning_rate": 8.228571428571427e-06, | |
| "loss": 0.1554, | |
| "mean_token_accuracy": 0.9745169878005981, | |
| "num_tokens": 496742.0, | |
| "step": 10 | |
| }, | |
| { | |
| "epoch": 0.0625, | |
| "grad_norm": 0.6305437088012695, | |
| "learning_rate": 1.28e-05, | |
| "loss": 0.0721, | |
| "mean_token_accuracy": 0.974311375617981, | |
| "num_tokens": 724829.0, | |
| "step": 15 | |
| }, | |
| { | |
| "epoch": 0.08333333333333333, | |
| "grad_norm": 0.600460410118103, | |
| "learning_rate": 1.737142857142857e-05, | |
| "loss": 0.0659, | |
| "mean_token_accuracy": 0.9756561756134033, | |
| "num_tokens": 971505.0, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 0.10416666666666667, | |
| "grad_norm": 0.32574766874313354, | |
| "learning_rate": 2.1942857142857143e-05, | |
| "loss": 0.064, | |
| "mean_token_accuracy": 0.9766518115997315, | |
| "num_tokens": 1199182.0, | |
| "step": 25 | |
| }, | |
| { | |
| "epoch": 0.125, | |
| "grad_norm": 0.3840601146221161, | |
| "learning_rate": 2.6514285714285714e-05, | |
| "loss": 0.0589, | |
| "mean_token_accuracy": 0.9783760905265808, | |
| "num_tokens": 1424781.0, | |
| "step": 30 | |
| }, | |
| { | |
| "epoch": 0.14583333333333334, | |
| "grad_norm": 0.35170161724090576, | |
| "learning_rate": 3.108571428571429e-05, | |
| "loss": 0.0552, | |
| "mean_token_accuracy": 0.9809070467948914, | |
| "num_tokens": 1656441.0, | |
| "step": 35 | |
| }, | |
| { | |
| "epoch": 0.16666666666666666, | |
| "grad_norm": 0.38860398530960083, | |
| "learning_rate": 3.1977461383213253e-05, | |
| "loss": 0.0557, | |
| "mean_token_accuracy": 0.979015564918518, | |
| "num_tokens": 1874845.0, | |
| "step": 40 | |
| }, | |
| { | |
| "epoch": 0.1875, | |
| "grad_norm": 0.2738734483718872, | |
| "learning_rate": 3.1886043337557493e-05, | |
| "loss": 0.0486, | |
| "mean_token_accuracy": 0.9812853336334229, | |
| "num_tokens": 2113037.0, | |
| "step": 45 | |
| }, | |
| { | |
| "epoch": 0.20833333333333334, | |
| "grad_norm": 0.42749589681625366, | |
| "learning_rate": 3.172487326331959e-05, | |
| "loss": 0.0549, | |
| "mean_token_accuracy": 0.9799219012260437, | |
| "num_tokens": 2332427.0, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 0.22916666666666666, | |
| "grad_norm": 0.37800702452659607, | |
| "learning_rate": 3.149489697058164e-05, | |
| "loss": 0.0432, | |
| "mean_token_accuracy": 0.9848166584968567, | |
| "num_tokens": 2554488.0, | |
| "step": 55 | |
| }, | |
| { | |
| "epoch": 0.25, | |
| "grad_norm": 0.3946857452392578, | |
| "learning_rate": 3.119746405167547e-05, | |
| "loss": 0.0404, | |
| "mean_token_accuracy": 0.9855175495147706, | |
| "num_tokens": 2786739.0, | |
| "step": 60 | |
| }, | |
| { | |
| "epoch": 0.2708333333333333, | |
| "grad_norm": 0.3823850154876709, | |
| "learning_rate": 3.083431996123823e-05, | |
| "loss": 0.0414, | |
| "mean_token_accuracy": 0.9853546023368835, | |
| "num_tokens": 3009272.0, | |
| "step": 65 | |
| }, | |
| { | |
| "epoch": 0.2916666666666667, | |
| "grad_norm": 0.34370142221450806, | |
| "learning_rate": 3.040759577319052e-05, | |
| "loss": 0.0342, | |
| "mean_token_accuracy": 0.9878533244132995, | |
| "num_tokens": 3232432.0, | |
| "step": 70 | |
| }, | |
| { | |
| "epoch": 0.3125, | |
| "grad_norm": 0.2963239252567291, | |
| "learning_rate": 2.9919795674747192e-05, | |
| "loss": 0.0414, | |
| "mean_token_accuracy": 0.9850364685058594, | |
| "num_tokens": 3451686.0, | |
| "step": 75 | |
| }, | |
| { | |
| "epoch": 0.3333333333333333, | |
| "grad_norm": 0.3777085840702057, | |
| "learning_rate": 2.9373782270851105e-05, | |
| "loss": 0.0344, | |
| "mean_token_accuracy": 0.9863149642944335, | |
| "num_tokens": 3686101.0, | |
| "step": 80 | |
| }, | |
| { | |
| "epoch": 0.3541666666666667, | |
| "grad_norm": 0.3020646572113037, | |
| "learning_rate": 2.8772759785269007e-05, | |
| "loss": 0.0359, | |
| "mean_token_accuracy": 0.9868231654167176, | |
| "num_tokens": 3911805.0, | |
| "step": 85 | |
| }, | |
| { | |
| "epoch": 0.375, | |
| "grad_norm": 0.3027993440628052, | |
| "learning_rate": 2.8120255256932373e-05, | |
| "loss": 0.0359, | |
| "mean_token_accuracy": 0.9869928598403931, | |
| "num_tokens": 4127382.0, | |
| "step": 90 | |
| }, | |
| { | |
| "epoch": 0.3958333333333333, | |
| "grad_norm": 0.25075381994247437, | |
| "learning_rate": 2.7420097841870516e-05, | |
| "loss": 0.0355, | |
| "mean_token_accuracy": 0.9872238159179687, | |
| "num_tokens": 4344064.0, | |
| "step": 95 | |
| }, | |
| { | |
| "epoch": 0.4166666666666667, | |
| "grad_norm": 0.2505415081977844, | |
| "learning_rate": 2.6676396342200362e-05, | |
| "loss": 0.0302, | |
| "mean_token_accuracy": 0.9891955852508545, | |
| "num_tokens": 4574083.0, | |
| "step": 100 | |
| }, | |
| { | |
| "epoch": 0.4375, | |
| "grad_norm": 0.6069908738136292, | |
| "learning_rate": 2.5893515094041877e-05, | |
| "loss": 0.0279, | |
| "mean_token_accuracy": 0.9887829422950745, | |
| "num_tokens": 4817727.0, | |
| "step": 105 | |
| }, | |
| { | |
| "epoch": 0.4583333333333333, | |
| "grad_norm": 0.34705400466918945, | |
| "learning_rate": 2.5076048355858304e-05, | |
| "loss": 0.0306, | |
| "mean_token_accuracy": 0.9883810520172119, | |
| "num_tokens": 5023726.0, | |
| "step": 110 | |
| }, | |
| { | |
| "epoch": 0.4791666666666667, | |
| "grad_norm": 0.26210981607437134, | |
| "learning_rate": 2.4228793347520662e-05, | |
| "loss": 0.0324, | |
| "mean_token_accuracy": 0.9878410696983337, | |
| "num_tokens": 5254507.0, | |
| "step": 115 | |
| }, | |
| { | |
| "epoch": 0.5, | |
| "grad_norm": 0.3876230716705322, | |
| "learning_rate": 2.3356722098314016e-05, | |
| "loss": 0.0315, | |
| "mean_token_accuracy": 0.9877596855163574, | |
| "num_tokens": 5476559.0, | |
| "step": 120 | |
| }, | |
| { | |
| "epoch": 0.5208333333333334, | |
| "grad_norm": 0.24489040672779083, | |
| "learning_rate": 2.2464952269092594e-05, | |
| "loss": 0.0293, | |
| "mean_token_accuracy": 0.9892186641693115, | |
| "num_tokens": 5695887.0, | |
| "step": 125 | |
| }, | |
| { | |
| "epoch": 0.5416666666666666, | |
| "grad_norm": 0.35060378909111023, | |
| "learning_rate": 2.1558717119810964e-05, | |
| "loss": 0.034, | |
| "mean_token_accuracy": 0.9864273786544799, | |
| "num_tokens": 5917871.0, | |
| "step": 130 | |
| }, | |
| { | |
| "epoch": 0.5625, | |
| "grad_norm": 0.3627464175224304, | |
| "learning_rate": 2.0643334798673667e-05, | |
| "loss": 0.0323, | |
| "mean_token_accuracy": 0.9869987010955811, | |
| "num_tokens": 6140719.0, | |
| "step": 135 | |
| }, | |
| { | |
| "epoch": 0.5833333333333334, | |
| "grad_norm": 0.17415323853492737, | |
| "learning_rate": 1.9724177133126915e-05, | |
| "loss": 0.0279, | |
| "mean_token_accuracy": 0.9885266542434692, | |
| "num_tokens": 6356382.0, | |
| "step": 140 | |
| }, | |
| { | |
| "epoch": 0.6041666666666666, | |
| "grad_norm": 0.3267502188682556, | |
| "learning_rate": 1.8806638105839112e-05, | |
| "loss": 0.026, | |
| "mean_token_accuracy": 0.9903501152992249, | |
| "num_tokens": 6585369.0, | |
| "step": 145 | |
| }, | |
| { | |
| "epoch": 0.625, | |
| "grad_norm": 0.27417582273483276, | |
| "learning_rate": 1.7896102200665742e-05, | |
| "loss": 0.0317, | |
| "mean_token_accuracy": 0.9881539463996887, | |
| "num_tokens": 6828331.0, | |
| "step": 150 | |
| }, | |
| { | |
| "epoch": 0.6458333333333334, | |
| "grad_norm": 0.24744659662246704, | |
| "learning_rate": 1.699791280435706e-05, | |
| "loss": 0.0302, | |
| "mean_token_accuracy": 0.9885796070098877, | |
| "num_tokens": 7051950.0, | |
| "step": 155 | |
| }, | |
| { | |
| "epoch": 0.6666666666666666, | |
| "grad_norm": 0.23047612607479095, | |
| "learning_rate": 1.611734084943989e-05, | |
| "loss": 0.0261, | |
| "mean_token_accuracy": 0.9900576591491699, | |
| "num_tokens": 7298997.0, | |
| "step": 160 | |
| }, | |
| { | |
| "epoch": 0.6875, | |
| "grad_norm": 0.3065533936023712, | |
| "learning_rate": 1.5259553882289752e-05, | |
| "loss": 0.0248, | |
| "mean_token_accuracy": 0.9891996860504151, | |
| "num_tokens": 7532001.0, | |
| "step": 165 | |
| }, | |
| { | |
| "epoch": 0.7083333333333334, | |
| "grad_norm": 0.27599287033081055, | |
| "learning_rate": 1.4429585737913864e-05, | |
| "loss": 0.0302, | |
| "mean_token_accuracy": 0.9883705019950867, | |
| "num_tokens": 7764472.0, | |
| "step": 170 | |
| }, | |
| { | |
| "epoch": 0.7291666666666666, | |
| "grad_norm": 0.3162113130092621, | |
| "learning_rate": 1.363230699940576e-05, | |
| "loss": 0.0301, | |
| "mean_token_accuracy": 0.9892247676849365, | |
| "num_tokens": 7995952.0, | |
| "step": 175 | |
| }, | |
| { | |
| "epoch": 0.75, | |
| "grad_norm": 0.23331812024116516, | |
| "learning_rate": 1.287239641542695e-05, | |
| "loss": 0.0282, | |
| "mean_token_accuracy": 0.9878239870071411, | |
| "num_tokens": 8211555.0, | |
| "step": 180 | |
| }, | |
| { | |
| "epoch": 0.7708333333333334, | |
| "grad_norm": 0.3580274283885956, | |
| "learning_rate": 1.2154313443449378e-05, | |
| "loss": 0.0278, | |
| "mean_token_accuracy": 0.9888530850410462, | |
| "num_tokens": 8431572.0, | |
| "step": 185 | |
| }, | |
| { | |
| "epoch": 0.7916666666666666, | |
| "grad_norm": 0.4279195964336395, | |
| "learning_rate": 1.1482272079885756e-05, | |
| "loss": 0.0255, | |
| "mean_token_accuracy": 0.9907689332962036, | |
| "num_tokens": 8679238.0, | |
| "step": 190 | |
| }, | |
| { | |
| "epoch": 0.8125, | |
| "grad_norm": 0.2191263735294342, | |
| "learning_rate": 1.0860216130682974e-05, | |
| "loss": 0.0269, | |
| "mean_token_accuracy": 0.9891373753547669, | |
| "num_tokens": 8909298.0, | |
| "step": 195 | |
| }, | |
| { | |
| "epoch": 0.8333333333333334, | |
| "grad_norm": 0.278317928314209, | |
| "learning_rate": 1.0291796067500633e-05, | |
| "loss": 0.0306, | |
| "mean_token_accuracy": 0.9874593138694763, | |
| "num_tokens": 9122655.0, | |
| "step": 200 | |
| }, | |
| { | |
| "epoch": 0.8541666666666666, | |
| "grad_norm": 0.21606506407260895, | |
| "learning_rate": 9.780347605291779e-06, | |
| "loss": 0.0248, | |
| "mean_token_accuracy": 0.9900753617286682, | |
| "num_tokens": 9360956.0, | |
| "step": 205 | |
| }, | |
| { | |
| "epoch": 0.875, | |
| "grad_norm": 0.29596489667892456, | |
| "learning_rate": 9.3288721270012e-06, | |
| "loss": 0.0306, | |
| "mean_token_accuracy": 0.9871683955192566, | |
| "num_tokens": 9577392.0, | |
| "step": 210 | |
| }, | |
| { | |
| "epoch": 0.8958333333333334, | |
| "grad_norm": 0.17577266693115234, | |
| "learning_rate": 8.940019070256834e-06, | |
| "loss": 0.024, | |
| "mean_token_accuracy": 0.9909762382507324, | |
| "num_tokens": 9820175.0, | |
| "step": 215 | |
| }, | |
| { | |
| "epoch": 0.9166666666666666, | |
| "grad_norm": 0.23576903343200684, | |
| "learning_rate": 8.616070379416278e-06, | |
| "loss": 0.0263, | |
| "mean_token_accuracy": 0.9898757338523865, | |
| "num_tokens": 10058016.0, | |
| "step": 220 | |
| }, | |
| { | |
| "epoch": 0.9375, | |
| "grad_norm": 0.18649086356163025, | |
| "learning_rate": 8.358927114209922e-06, | |
| "loss": 0.0237, | |
| "mean_token_accuracy": 0.9900375962257385, | |
| "num_tokens": 10282549.0, | |
| "step": 225 | |
| }, | |
| { | |
| "epoch": 0.9583333333333334, | |
| "grad_norm": 0.37267619371414185, | |
| "learning_rate": 8.17009829356652e-06, | |
| "loss": 0.0237, | |
| "mean_token_accuracy": 0.9893411636352539, | |
| "num_tokens": 10512587.0, | |
| "step": 230 | |
| }, | |
| { | |
| "epoch": 0.9791666666666666, | |
| "grad_norm": 0.26077815890312195, | |
| "learning_rate": 8.050692040090082e-06, | |
| "loss": 0.0305, | |
| "mean_token_accuracy": 0.9884429574012756, | |
| "num_tokens": 10741260.0, | |
| "step": 235 | |
| } | |
| ], | |
| "logging_steps": 5, | |
| "max_steps": 240, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 1, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": false | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 2.509370326983936e+17, | |
| "train_batch_size": 20, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |