Instructions to use mrtineu/thinkingcap-test-submission with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mrtineu/thinkingcap-test-submission with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mrtineu/thinkingcap-test-submission") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mrtineu/thinkingcap-test-submission") model = AutoModelForCausalLM.from_pretrained("mrtineu/thinkingcap-test-submission", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mrtineu/thinkingcap-test-submission with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mrtineu/thinkingcap-test-submission" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mrtineu/thinkingcap-test-submission", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mrtineu/thinkingcap-test-submission
- SGLang
How to use mrtineu/thinkingcap-test-submission 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 "mrtineu/thinkingcap-test-submission" \ --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": "mrtineu/thinkingcap-test-submission", "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 "mrtineu/thinkingcap-test-submission" \ --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": "mrtineu/thinkingcap-test-submission", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use mrtineu/thinkingcap-test-submission with Docker Model Runner:
docker model run hf.co/mrtineu/thinkingcap-test-submission
Download code/thinkingcap/results/summary.json from mrtineu/thinkingcap-test-submission: direct link, hf CLI and curl.
- Browser
- Download file 11.2 kB
-
https://huggingface.co/mrtineu/thinkingcap-test-submission/resolve/main/code/thinkingcap/results/summary.json
- Command line
-
hf download hf://mrtineu/thinkingcap-test-submission/code/thinkingcap/results/summary.json
-
curl -L -o summary.json https://huggingface.co/mrtineu/thinkingcap-test-submission/resolve/main/code/thinkingcap/results/summary.json
11.2 kB
| { | |
| "full-coached-step-00170": { | |
| "average": { | |
| "benchmarks": [ | |
| "bfcl", | |
| "ifeval", | |
| "mbpp", | |
| "svamp" | |
| ], | |
| "token_reduction": 0.2251305432264611, | |
| "accuracy_delta": -0.015775959300335457, | |
| "intervals": { | |
| "method": "macro_paired_prompt_cluster_percentile", | |
| "resamples": 2000, | |
| "seed": 42, | |
| "groups": 4, | |
| "accuracy_delta": [ | |
| -0.022395247042452736, | |
| -0.008943480758369284 | |
| ], | |
| "token_reduction": [ | |
| 0.21040730371761135, | |
| 0.2398822158696363 | |
| ] | |
| } | |
| }, | |
| "per_dataset": { | |
| "bfcl_irrelevance": { | |
| "accuracy_delta": -0.0031250000000000444, | |
| "token_reduction": 0.23571749344484738 | |
| }, | |
| "bfcl_multiple": { | |
| "accuracy_delta": -0.03249999999999997, | |
| "token_reduction": 0.16812980396747101 | |
| }, | |
| "bfcl_simple_python": { | |
| "accuracy_delta": -0.011249999999999982, | |
| "token_reduction": 0.1729158526565271 | |
| }, | |
| "ifeval": { | |
| "accuracy_delta": -0.0039279112754159184, | |
| "token_reduction": 0.20573441956338046 | |
| }, | |
| "mbpp": { | |
| "accuracy_delta": -0.018187830687830697, | |
| "token_reduction": 0.13160462881705048 | |
| }, | |
| "svamp": { | |
| "accuracy_delta": -0.027000000000000024, | |
| "token_reduction": 0.3544590150170668 | |
| } | |
| } | |
| }, | |
| "full-coached-step-00339": { | |
| "average": { | |
| "benchmarks": [ | |
| "bfcl", | |
| "ifeval", | |
| "mbpp", | |
| "svamp" | |
| ], | |
| "token_reduction": 0.13925793716153978, | |
| "accuracy_delta": -0.016669225982650165, | |
| "intervals": { | |
| "method": "macro_paired_prompt_cluster_percentile", | |
| "resamples": 2000, | |
| "seed": 42, | |
| "groups": 4, | |
| "accuracy_delta": [ | |
| -0.023464271212310144, | |
| -0.010117937117661313 | |
| ], | |
| "token_reduction": [ | |
| 0.12451812833714451, | |
| 0.15335428465422624 | |
| ] | |
| } | |
| }, | |
| "per_dataset": { | |
| "bfcl_irrelevance": { | |
| "accuracy_delta": -0.015625, | |
| "token_reduction": 0.09890916465867328 | |
| }, | |
| "bfcl_multiple": { | |
| "accuracy_delta": -0.030625000000000013, | |
| "token_reduction": 0.10108745938052155 | |
| }, | |
| "bfcl_simple_python": { | |
| "accuracy_delta": -0.009062499999999973, | |
| "token_reduction": 0.12295452316290978 | |
| }, | |
| "ifeval": { | |
| "accuracy_delta": -0.017329020332717104, | |
| "token_reduction": 0.1387609377331136 | |
| }, | |
| "mbpp": { | |
| "accuracy_delta": -0.017526455026455, | |
| "token_reduction": 0.02229765205975842 | |
| }, | |
| "svamp": { | |
| "accuracy_delta": -0.015750000000000042, | |
| "token_reduction": 0.26740410588088837 | |
| } | |
| } | |
| }, | |
| "full-coached-step-00509": { | |
| "average": { | |
| "benchmarks": [ | |
| "bfcl", | |
| "ifeval", | |
| "mbpp", | |
| "svamp" | |
| ], | |
| "token_reduction": 0.16220044086240637, | |
| "accuracy_delta": -0.018996607240657604, | |
| "intervals": { | |
| "method": "macro_paired_prompt_cluster_percentile", | |
| "resamples": 2000, | |
| "seed": 42, | |
| "groups": 4, | |
| "accuracy_delta": [ | |
| -0.025693747906458744, | |
| -0.012685041754687088 | |
| ], | |
| "token_reduction": [ | |
| 0.14663964259670606, | |
| 0.17717285264651467 | |
| ] | |
| } | |
| }, | |
| "per_dataset": { | |
| "bfcl_irrelevance": { | |
| "accuracy_delta": -0.014583333333333393, | |
| "token_reduction": 0.14910738861069395 | |
| }, | |
| "bfcl_multiple": { | |
| "accuracy_delta": -0.030625000000000013, | |
| "token_reduction": 0.10390783071083387 | |
| }, | |
| "bfcl_simple_python": { | |
| "accuracy_delta": -0.011249999999999982, | |
| "token_reduction": 0.11056548982909409 | |
| }, | |
| "ifeval": { | |
| "accuracy_delta": -0.021256931608133023, | |
| "token_reduction": 0.17608888942410938 | |
| }, | |
| "mbpp": { | |
| "accuracy_delta": -0.021164021164021163, | |
| "token_reduction": 0.021556416408186507 | |
| }, | |
| "svamp": { | |
| "accuracy_delta": -0.016750000000000043, | |
| "token_reduction": 0.3052826086327145 | |
| } | |
| } | |
| }, | |
| "full-coached-step-00678": { | |
| "average": { | |
| "benchmarks": [ | |
| "bfcl", | |
| "ifeval", | |
| "mbpp", | |
| "svamp" | |
| ], | |
| "token_reduction": 0.15736755090855203, | |
| "accuracy_delta": -0.017493329091238033, | |
| "intervals": { | |
| "method": "macro_paired_prompt_cluster_percentile", | |
| "resamples": 2000, | |
| "seed": 42, | |
| "groups": 4, | |
| "accuracy_delta": [ | |
| -0.024253366391419475, | |
| -0.010920474122913183 | |
| ], | |
| "token_reduction": [ | |
| 0.14311904239762566, | |
| 0.17139753953387718 | |
| ] | |
| } | |
| }, | |
| "per_dataset": { | |
| "bfcl_irrelevance": { | |
| "accuracy_delta": -0.01041666666666674, | |
| "token_reduction": 0.13008658113178395 | |
| }, | |
| "bfcl_multiple": { | |
| "accuracy_delta": -0.03125, | |
| "token_reduction": 0.12773885368069604 | |
| }, | |
| "bfcl_simple_python": { | |
| "accuracy_delta": -0.0031249999999999334, | |
| "token_reduction": 0.1143151622151366 | |
| }, | |
| "ifeval": { | |
| "accuracy_delta": -0.015480591497227358, | |
| "token_reduction": 0.16687640620829047 | |
| }, | |
| "mbpp": { | |
| "accuracy_delta": -0.025462962962962965, | |
| "token_reduction": 0.012767568850381883 | |
| }, | |
| "svamp": { | |
| "accuracy_delta": -0.017124999999999946, | |
| "token_reduction": 0.30152237071049515 | |
| } | |
| } | |
| }, | |
| "full-control-step-00155": { | |
| "average": { | |
| "benchmarks": [ | |
| "bfcl", | |
| "ifeval", | |
| "mbpp", | |
| "svamp" | |
| ], | |
| "token_reduction": 0.000533076373533059, | |
| "accuracy_delta": -0.001231111673463764, | |
| "intervals": { | |
| "method": "macro_paired_prompt_cluster_percentile", | |
| "resamples": 2000, | |
| "seed": 42, | |
| "groups": 4, | |
| "accuracy_delta": [ | |
| -0.006815710277423251, | |
| 0.004597235891365684 | |
| ], | |
| "token_reduction": [ | |
| -0.015073214910833304, | |
| 0.015664959053666827 | |
| ] | |
| } | |
| }, | |
| "per_dataset": { | |
| "bfcl_irrelevance": { | |
| "accuracy_delta": 0.0078125, | |
| "token_reduction": -0.004505309311455541 | |
| }, | |
| "bfcl_multiple": { | |
| "accuracy_delta": -0.004375000000000018, | |
| "token_reduction": 0.053670663121693996 | |
| }, | |
| "bfcl_simple_python": { | |
| "accuracy_delta": 0.0068749999999999645, | |
| "token_reduction": 0.0209753328798995 | |
| }, | |
| "ifeval": { | |
| "accuracy_delta": 0.0027726432532347856, | |
| "token_reduction": -0.024011330618427307 | |
| }, | |
| "mbpp": { | |
| "accuracy_delta": -0.000661375661375696, | |
| "token_reduction": -0.05567329400740317 | |
| }, | |
| "svamp": { | |
| "accuracy_delta": -0.011499999999999955, | |
| "token_reduction": 0.05632901909920762 | |
| } | |
| } | |
| }, | |
| "full-control-step-00309": { | |
| "average": { | |
| "benchmarks": [ | |
| "bfcl", | |
| "ifeval", | |
| "mbpp", | |
| "svamp" | |
| ], | |
| "token_reduction": 0.0016399482781109809, | |
| "accuracy_delta": -0.0023537290095746177, | |
| "intervals": { | |
| "method": "macro_paired_prompt_cluster_percentile", | |
| "resamples": 2000, | |
| "seed": 42, | |
| "groups": 4, | |
| "accuracy_delta": [ | |
| -0.008051022182979786, | |
| 0.0031020383986029177 | |
| ], | |
| "token_reduction": [ | |
| -0.014075581819115186, | |
| 0.017074185152357497 | |
| ] | |
| } | |
| }, | |
| "per_dataset": { | |
| "bfcl_irrelevance": { | |
| "accuracy_delta": 0.006249999999999978, | |
| "token_reduction": 0.030706604406800952 | |
| }, | |
| "bfcl_multiple": { | |
| "accuracy_delta": -0.0068749999999999645, | |
| "token_reduction": 0.03226984153526302 | |
| }, | |
| "bfcl_simple_python": { | |
| "accuracy_delta": 0.004687500000000067, | |
| "token_reduction": 0.02878500645580384 | |
| }, | |
| "ifeval": { | |
| "accuracy_delta": -0.00023105360443620437, | |
| "token_reduction": -0.03589523325913846 | |
| }, | |
| "mbpp": { | |
| "accuracy_delta": -0.0023148148148147696, | |
| "token_reduction": -0.05651409161766585 | |
| }, | |
| "svamp": { | |
| "accuracy_delta": -0.00924999999999998, | |
| "token_reduction": 0.06395064373333492 | |
| } | |
| } | |
| }, | |
| "full-control-step-00464": { | |
| "average": { | |
| "benchmarks": [ | |
| "bfcl", | |
| "ifeval", | |
| "mbpp", | |
| "svamp" | |
| ], | |
| "token_reduction": 0.02314571451812164, | |
| "accuracy_delta": 0.0009090321176735694, | |
| "intervals": { | |
| "method": "macro_paired_prompt_cluster_percentile", | |
| "resamples": 2000, | |
| "seed": 42, | |
| "groups": 4, | |
| "accuracy_delta": [ | |
| -0.004961584946735421, | |
| 0.00667879795890424 | |
| ], | |
| "token_reduction": [ | |
| 0.00813770679856859, | |
| 0.03789405007438189 | |
| ] | |
| } | |
| }, | |
| "per_dataset": { | |
| "bfcl_irrelevance": { | |
| "accuracy_delta": 0.009375000000000022, | |
| "token_reduction": 0.0620264717102309 | |
| }, | |
| "bfcl_multiple": { | |
| "accuracy_delta": -0.006249999999999978, | |
| "token_reduction": 0.05655234687223054 | |
| }, | |
| "bfcl_simple_python": { | |
| "accuracy_delta": 0.0068749999999999645, | |
| "token_reduction": 0.030756317924623855 | |
| }, | |
| "ifeval": { | |
| "accuracy_delta": 0.0057763401109057755, | |
| "token_reduction": -0.03068653405240207 | |
| }, | |
| "mbpp": { | |
| "accuracy_delta": 0.002645502645502673, | |
| "token_reduction": -0.022164276605663558 | |
| }, | |
| "svamp": { | |
| "accuracy_delta": -0.00924999999999998, | |
| "token_reduction": 0.09336684693709163 | |
| } | |
| } | |
| }, | |
| "full-control-step-00618": { | |
| "average": { | |
| "benchmarks": [ | |
| "bfcl", | |
| "ifeval", | |
| "mbpp", | |
| "svamp" | |
| ], | |
| "token_reduction": 0.012010834762931188, | |
| "accuracy_delta": -0.0012360337876164973, | |
| "intervals": { | |
| "method": "macro_paired_prompt_cluster_percentile", | |
| "resamples": 2000, | |
| "seed": 42, | |
| "groups": 4, | |
| "accuracy_delta": [ | |
| -0.007170346111270038, | |
| 0.004716618469373773 | |
| ], | |
| "token_reduction": [ | |
| -0.0021440625426682345, | |
| 0.026535225436725624 | |
| ] | |
| } | |
| }, | |
| "per_dataset": { | |
| "bfcl_irrelevance": { | |
| "accuracy_delta": 0.011458333333333348, | |
| "token_reduction": 0.038328931039311565 | |
| }, | |
| "bfcl_multiple": { | |
| "accuracy_delta": -0.006249999999999978, | |
| "token_reduction": 0.060044367896816775 | |
| }, | |
| "bfcl_simple_python": { | |
| "accuracy_delta": 0.00968749999999996, | |
| "token_reduction": 0.0138811842661688 | |
| }, | |
| "ifeval": { | |
| "accuracy_delta": -0.006238447319778184, | |
| "token_reduction": -0.03166398052867736 | |
| }, | |
| "mbpp": { | |
| "accuracy_delta": 0.002645502645502673, | |
| "token_reduction": -0.04743438538179978 | |
| }, | |
| "svamp": { | |
| "accuracy_delta": -0.007750000000000035, | |
| "token_reduction": 0.08814908933519006 | |
| } | |
| } | |
| } | |
| } | |