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/run/selection_summary.json from mrtineu/thinkingcap-test-submission: direct link, hf CLI and curl.
- Browser
- Download file 2.93 kB
-
https://huggingface.co/mrtineu/thinkingcap-test-submission/resolve/main/code/thinkingcap/results/run/selection_summary.json
- Command line
-
hf download hf://mrtineu/thinkingcap-test-submission/code/thinkingcap/results/run/selection_summary.json
-
curl -L -o selection_summary.json https://huggingface.co/mrtineu/thinkingcap-test-submission/resolve/main/code/thinkingcap/results/run/selection_summary.json
2.93 kB
| { | |
| "control": { | |
| "targets": 9858, | |
| "per_source": { | |
| "arc_easy": { | |
| "eligible": 1791, | |
| "any_correct": 1781, | |
| "accepted": 1536, | |
| "ref_tokens": 682709.0, | |
| "target_tokens": 476181, | |
| "candidate_correct": 6641, | |
| "candidate_samples": 7164, | |
| "token_ratio_accepted": 0.6974875093194904, | |
| "candidate_accuracy": 0.9269960915689559 | |
| }, | |
| "gsm8k": { | |
| "eligible": 3830, | |
| "any_correct": 3630, | |
| "accepted": 2777, | |
| "ref_tokens": 3665620.0, | |
| "target_tokens": 2269987, | |
| "candidate_correct": 9950, | |
| "candidate_samples": 15320, | |
| "token_ratio_accepted": 0.6192641353986501, | |
| "candidate_accuracy": 0.6494778067885117 | |
| }, | |
| "commonsense_qa": { | |
| "eligible": 5862, | |
| "any_correct": 5682, | |
| "accepted": 4701, | |
| "ref_tokens": 2022836.5, | |
| "target_tokens": 1327832, | |
| "candidate_correct": 19158, | |
| "candidate_samples": 23448, | |
| "token_ratio_accepted": 0.6564208229384827, | |
| "candidate_accuracy": 0.8170419651995906 | |
| }, | |
| "skywork": { | |
| "eligible": 1418, | |
| "any_correct": 1189, | |
| "accepted": 844, | |
| "ref_tokens": 1185309.5, | |
| "target_tokens": 823646, | |
| "candidate_correct": 2710, | |
| "candidate_samples": 5672, | |
| "token_ratio_accepted": 0.6948784262675698, | |
| "candidate_accuracy": 0.47778561354019744 | |
| } | |
| } | |
| }, | |
| "coached": { | |
| "targets": 10825, | |
| "per_source": { | |
| "arc_easy": { | |
| "eligible": 1618, | |
| "any_correct": 1589, | |
| "accepted": 1546, | |
| "ref_tokens": 674072.0, | |
| "target_tokens": 373684, | |
| "candidate_correct": 5677, | |
| "candidate_samples": 6472, | |
| "token_ratio_accepted": 0.5543680793743102, | |
| "candidate_accuracy": 0.8771631644004945 | |
| }, | |
| "gsm8k": { | |
| "eligible": 3830, | |
| "any_correct": 3793, | |
| "accepted": 3725, | |
| "ref_tokens": 4867428.0, | |
| "target_tokens": 1726002, | |
| "candidate_correct": 13934, | |
| "candidate_samples": 15320, | |
| "token_ratio_accepted": 0.3546024717777027, | |
| "candidate_accuracy": 0.9095300261096606 | |
| }, | |
| "commonsense_qa": { | |
| "eligible": 5159, | |
| "any_correct": 4681, | |
| "accepted": 4277, | |
| "ref_tokens": 1800439.0, | |
| "target_tokens": 1018684, | |
| "candidate_correct": 13194, | |
| "candidate_samples": 20636, | |
| "token_ratio_accepted": 0.5657975638163804, | |
| "candidate_accuracy": 0.6393680945919752 | |
| }, | |
| "skywork": { | |
| "eligible": 1408, | |
| "any_correct": 1344, | |
| "accepted": 1277, | |
| "ref_tokens": 1840556.5, | |
| "target_tokens": 906568, | |
| "candidate_correct": 4386, | |
| "candidate_samples": 5632, | |
| "token_ratio_accepted": 0.49255103008247775, | |
| "candidate_accuracy": 0.7787642045454546 | |
| } | |
| } | |
| } | |
| } | |