Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
trl
sft
conversational
text-generation-inference
Run this model with HF Jobs
Run shulijia/MNLP_M3_mcqa_model 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/shulijia/MNLP_M3_mcqa_model. 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/shulijia/MNLP_M3_mcqa_model 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/shulijia/MNLP_M3_mcqa_model. 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/shulijia/MNLP_M3_mcqa_model. 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 shulijia/MNLP_M3_mcqa_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shulijia/MNLP_M3_mcqa_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shulijia/MNLP_M3_mcqa_model") 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("shulijia/MNLP_M3_mcqa_model") model = AutoModelForCausalLM.from_pretrained("shulijia/MNLP_M3_mcqa_model", 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 shulijia/MNLP_M3_mcqa_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shulijia/MNLP_M3_mcqa_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shulijia/MNLP_M3_mcqa_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/shulijia/MNLP_M3_mcqa_model
- SGLang
How to use shulijia/MNLP_M3_mcqa_model 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 "shulijia/MNLP_M3_mcqa_model" \ --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": "shulijia/MNLP_M3_mcqa_model", "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 "shulijia/MNLP_M3_mcqa_model" \ --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": "shulijia/MNLP_M3_mcqa_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use shulijia/MNLP_M3_mcqa_model with Docker Model Runner:
docker model run hf.co/shulijia/MNLP_M3_mcqa_model
Training in progress, step 1000, checkpoint
Browse filesFiles changed (5)
123version https://git-lfs.github.com/spec/v1oid sha256:450b317279dc110653fc9a73f39508a4d3194f7cfed04a348e348b6c624648dbsize 2384234968123version https://git-lfs.github.com/spec/v1oid sha256:061dc4d2658410b6acb6b73f235d87b3f5265cef287f6769738bad18b4c0a56dsize 2384234968
123version https://git-lfs.github.com/spec/v1oid sha256:b4c8f30f751caea8784934de0edc0324d11e38c766bd5e30d9578144253c7ef0size 4768663315123version https://git-lfs.github.com/spec/v1oid sha256:42fe8edb8b2246c1d5a01ee698f646d3a2bb595570993cb3e2a0c0fd442749b7size 4768663315
123version https://git-lfs.github.com/spec/v1oid sha256:de69a2834426ff9ef8199d077e00892579278af31d8969d77f98235b5cfc010asize 14645123version https://git-lfs.github.com/spec/v1oid sha256:2534e434cd5abbb8f7668d3eab0549db0ef95d6a797a3efa86b712e8e32266a7size 14645
123version https://git-lfs.github.com/spec/v1oid sha256:a5f8ea6759cdb8f0cac09a72bb10eaef8b1793c42711c2d3033d0f1c8eea47e9size 1465123version https://git-lfs.github.com/spec/v1oid sha256:89fc96babd031398dc4f49db529af14042a214d2e774c56f2d58620c95114b55size 1465
1 unmodified line2345678910447 unmodified lines45845946046146246313 unmodified lines4774784794804814824831 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 1.3898364079359555,"eval_steps": 100,"global_step": 500,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,447 unmodified lines"mean_token_accuracy": 0.9125856146216392,"num_tokens": 4088832.0,"step": 500}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 1.0805984574308352e+16,"train_batch_size": 2,"trial_name": null,"trial_params": null1 unmodified line2345678910447 unmodified lines45845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291313 unmodified lines9279289299309319329331 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 2.779672815871911,"eval_steps": 100,"global_step": 1000,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,447 unmodified lines"mean_token_accuracy": 0.9125856146216392,"num_tokens": 4088832.0,"step": 500},{"epoch": 1.4176818656456667,"grad_norm": 1.0593403577804565,"learning_rate": 5.87448559670782e-06,"loss": 0.0926,"mean_token_accuracy": 0.9135763190686703,"num_tokens": 4170752.0,"step": 510},{"epoch": 1.4455273233553776,"grad_norm": 0.865151584148407,"learning_rate": 5.771604938271605e-06,"loss": 0.096,"mean_token_accuracy": 0.9089041098952293,"num_tokens": 4252672.0,"step": 520},{"epoch": 1.4733727810650887,"grad_norm": 0.823634684085846,"learning_rate": 5.6687242798353915e-06,"loss": 0.0826,"mean_token_accuracy": 0.9167196683585643,"num_tokens": 4334592.0,"step": 530},{"epoch": 1.5012182387747999,"grad_norm": 1.3224678039550781,"learning_rate": 5.565843621399178e-06,"loss": 0.0948,"mean_token_accuracy": 0.909222112596035,"num_tokens": 4416512.0,"step": 540},{"epoch": 1.529063696484511,"grad_norm": 1.1047239303588867,"learning_rate": 5.462962962962963e-06,"loss": 0.0908,"mean_token_accuracy": 0.911081214249134,"num_tokens": 4498432.0,"step": 550},{"epoch": 1.556909154194222,"grad_norm": 1.124988317489624,"learning_rate": 5.360082304526749e-06,"loss": 0.0944,"mean_token_accuracy": 0.9126834630966186,"num_tokens": 4580352.0,"step": 560},{"epoch": 1.584754611903933,"grad_norm": 1.1450597047805786,"learning_rate": 5.257201646090535e-06,"loss": 0.09,"mean_token_accuracy": 0.9106775917112827,"num_tokens": 4662272.0,"step": 570},{"epoch": 1.6126000696136442,"grad_norm": 0.9272586107254028,"learning_rate": 5.154320987654321e-06,"loss": 0.0864,"mean_token_accuracy": 0.9094911932945251,"num_tokens": 4744192.0,"step": 580},{"epoch": 1.6404455273233554,"grad_norm": 1.3119956254959106,"learning_rate": 5.051440329218107e-06,"loss": 0.0887,"mean_token_accuracy": 0.9084026426076889,"num_tokens": 4826112.0,"step": 590},{"epoch": 1.6682909850330665,"grad_norm": 0.9722729325294495,"learning_rate": 4.9485596707818935e-06,"loss": 0.0863,"mean_token_accuracy": 0.9236545950174332,"num_tokens": 4908032.0,"step": 600},{"epoch": 1.6961364427427776,"grad_norm": 0.9531897902488708,"learning_rate": 4.845679012345679e-06,"loss": 0.0851,"mean_token_accuracy": 0.9154476508498192,"num_tokens": 4989952.0,"step": 610},{"epoch": 1.7239819004524888,"grad_norm": 1.1761149168014526,"learning_rate": 4.742798353909465e-06,"loss": 0.0889,"mean_token_accuracy": 0.9128913849592208,"num_tokens": 5071872.0,"step": 620},{"epoch": 1.7518273581622,"grad_norm": 0.8723099231719971,"learning_rate": 4.6399176954732515e-06,"loss": 0.0923,"mean_token_accuracy": 0.9085738733410835,"num_tokens": 5153792.0,"step": 630},{"epoch": 1.7796728158719108,"grad_norm": 1.3783780336380005,"learning_rate": 4.537037037037038e-06,"loss": 0.0921,"mean_token_accuracy": 0.9185420729219913,"num_tokens": 5235712.0,"step": 640},{"epoch": 1.807518273581622,"grad_norm": 0.9514628648757935,"learning_rate": 4.434156378600823e-06,"loss": 0.0914,"mean_token_accuracy": 0.918224073201418,"num_tokens": 5317632.0,"step": 650},{"epoch": 1.8353637312913331,"grad_norm": 1.5927624702453613,"learning_rate": 4.331275720164609e-06,"loss": 0.0948,"mean_token_accuracy": 0.9134784743189812,"num_tokens": 5399552.0,"step": 660},{"epoch": 1.863209189001044,"grad_norm": 1.1536865234375,"learning_rate": 4.228395061728396e-06,"loss": 0.0963,"mean_token_accuracy": 0.9069471605122089,"num_tokens": 5481472.0,"step": 670},{"epoch": 1.8910546467107552,"grad_norm": 0.9462175965309143,"learning_rate": 4.125514403292181e-06,"loss": 0.0898,"mean_token_accuracy": 0.9125489234924317,"num_tokens": 5563392.0,"step": 680},{"epoch": 1.9189001044204663,"grad_norm": 0.940758228302002,"learning_rate": 4.022633744855967e-06,"loss": 0.0949,"mean_token_accuracy": 0.9125366877764464,"num_tokens": 5645312.0,"step": 690},{"epoch": 1.9467455621301775,"grad_norm": 0.9007344245910645,"learning_rate": 3.9197530864197535e-06,"loss": 0.082,"mean_token_accuracy": 0.9042441304773092,"num_tokens": 5727232.0,"step": 700},{"epoch": 1.9745910198398886,"grad_norm": 0.880010187625885,"learning_rate": 3.81687242798354e-06,"loss": 0.0882,"mean_token_accuracy": 0.9144691735506058,"num_tokens": 5809152.0,"step": 710},{"epoch": 2.0,"grad_norm": 3.2822415828704834,"learning_rate": 3.7139917695473256e-06,"loss": 0.0894,"mean_token_accuracy": 0.9187732877796644,"num_tokens": 5883904.0,"step": 720},{"epoch": 2.027845457709711,"grad_norm": 0.8666273951530457,"learning_rate": 3.6111111111111115e-06,"loss": 0.0783,"mean_token_accuracy": 0.9194716215133667,"num_tokens": 5965824.0,"step": 730},{"epoch": 2.0556909154194223,"grad_norm": 1.257120132446289,"learning_rate": 3.5082304526748973e-06,"loss": 0.0792,"mean_token_accuracy": 0.9152030311524868,"num_tokens": 6047744.0,"step": 740},{"epoch": 2.0835363731291334,"grad_norm": 1.344621181488037,"learning_rate": 3.405349794238683e-06,"loss": 0.0868,"mean_token_accuracy": 0.9004647728055716,"num_tokens": 6129664.0,"step": 750},{"epoch": 2.1113818308388446,"grad_norm": 1.0627198219299316,"learning_rate": 3.30246913580247e-06,"loss": 0.0804,"mean_token_accuracy": 0.915875731408596,"num_tokens": 6211584.0,"step": 760},{"epoch": 2.1392272885485557,"grad_norm": 1.065942406654358,"learning_rate": 3.1995884773662556e-06,"loss": 0.0769,"mean_token_accuracy": 0.9183219157159328,"num_tokens": 6293504.0,"step": 770},{"epoch": 2.167072746258267,"grad_norm": 1.218607783317566,"learning_rate": 3.0967078189300415e-06,"loss": 0.0847,"mean_token_accuracy": 0.9176369860768319,"num_tokens": 6375424.0,"step": 780},{"epoch": 2.1949182039679775,"grad_norm": 0.8840998411178589,"learning_rate": 2.9938271604938273e-06,"loss": 0.076,"mean_token_accuracy": 0.9088307194411754,"num_tokens": 6457344.0,"step": 790},{"epoch": 2.2227636616776887,"grad_norm": 1.3679556846618652,"learning_rate": 2.890946502057613e-06,"loss": 0.0804,"mean_token_accuracy": 0.9142979431897402,"num_tokens": 6539264.0,"step": 800},{"epoch": 2.2506091193874,"grad_norm": 1.7247203588485718,"learning_rate": 2.7880658436213994e-06,"loss": 0.085,"mean_token_accuracy": 0.9157534211874008,"num_tokens": 6621184.0,"step": 810},{"epoch": 2.278454577097111,"grad_norm": 1.2949681282043457,"learning_rate": 2.6851851851851856e-06,"loss": 0.0792,"mean_token_accuracy": 0.9105797454714775,"num_tokens": 6703104.0,"step": 820},{"epoch": 2.306300034806822,"grad_norm": 1.1340421438217163,"learning_rate": 2.5823045267489715e-06,"loss": 0.0909,"mean_token_accuracy": 0.9104696653783322,"num_tokens": 6785024.0,"step": 830},{"epoch": 2.3341454925165332,"grad_norm": 1.4311587810516357,"learning_rate": 2.4794238683127577e-06,"loss": 0.07,"mean_token_accuracy": 0.9179427556693553,"num_tokens": 6866944.0,"step": 840},{"epoch": 2.3619909502262444,"grad_norm": 1.2658636569976807,"learning_rate": 2.3765432098765435e-06,"loss": 0.078,"mean_token_accuracy": 0.9194593898952007,"num_tokens": 6948864.0,"step": 850},{"epoch": 2.3898364079359555,"grad_norm": 1.1735376119613647,"learning_rate": 2.2736625514403294e-06,"loss": 0.0771,"mean_token_accuracy": 0.9146893344819546,"num_tokens": 7030784.0,"step": 860},{"epoch": 2.4176818656456667,"grad_norm": 1.3436040878295898,"learning_rate": 2.1707818930041156e-06,"loss": 0.0761,"mean_token_accuracy": 0.9215264186263085,"num_tokens": 7112704.0,"step": 870},{"epoch": 2.445527323355378,"grad_norm": 1.7530394792556763,"learning_rate": 2.0679012345679015e-06,"loss": 0.0809,"mean_token_accuracy": 0.9206335641443729,"num_tokens": 7194624.0,"step": 880},{"epoch": 2.4733727810650885,"grad_norm": 1.2825167179107666,"learning_rate": 1.9650205761316873e-06,"loss": 0.0763,"mean_token_accuracy": 0.915472112596035,"num_tokens": 7276544.0,"step": 890},{"epoch": 2.5012182387747997,"grad_norm": 1.0933923721313477,"learning_rate": 1.8621399176954735e-06,"loss": 0.0824,"mean_token_accuracy": 0.91106898188591,"num_tokens": 7358464.0,"step": 900},{"epoch": 2.529063696484511,"grad_norm": 1.5624420642852783,"learning_rate": 1.7592592592592594e-06,"loss": 0.0788,"mean_token_accuracy": 0.9117661438882351,"num_tokens": 7440384.0,"step": 910},{"epoch": 2.556909154194222,"grad_norm": 0.8869456052780151,"learning_rate": 1.6563786008230454e-06,"loss": 0.0744,"mean_token_accuracy": 0.9128913849592208,"num_tokens": 7522304.0,"step": 920},{"epoch": 2.584754611903933,"grad_norm": 1.7279531955718994,"learning_rate": 1.5534979423868312e-06,"loss": 0.0879,"mean_token_accuracy": 0.9147627178579569,"num_tokens": 7604224.0,"step": 930},{"epoch": 2.612600069613644,"grad_norm": 0.9950515031814575,"learning_rate": 1.4506172839506175e-06,"loss": 0.0785,"mean_token_accuracy": 0.9133194699883461,"num_tokens": 7686144.0,"step": 940},{"epoch": 2.6404455273233554,"grad_norm": 1.2250232696533203,"learning_rate": 1.3477366255144033e-06,"loss": 0.0781,"mean_token_accuracy": 0.9132705468684434,"num_tokens": 7768064.0,"step": 950},{"epoch": 2.6682909850330665,"grad_norm": 1.1228382587432861,"learning_rate": 1.2448559670781894e-06,"loss": 0.0858,"mean_token_accuracy": 0.9010029338300228,"num_tokens": 7849984.0,"step": 960},{"epoch": 2.6961364427427776,"grad_norm": 1.256042718887329,"learning_rate": 1.1419753086419754e-06,"loss": 0.079,"mean_token_accuracy": 0.9115582153201103,"num_tokens": 7931904.0,"step": 970},{"epoch": 2.723981900452489,"grad_norm": 0.9604980945587158,"learning_rate": 1.0390946502057615e-06,"loss": 0.0757,"mean_token_accuracy": 0.9120229929685593,"num_tokens": 8013824.0,"step": 980},{"epoch": 2.7518273581622,"grad_norm": 1.2086925506591797,"learning_rate": 9.362139917695474e-07,"loss": 0.082,"mean_token_accuracy": 0.9099559649825096,"num_tokens": 8095744.0,"step": 990},{"epoch": 2.779672815871911,"grad_norm": 0.9486561417579651,"learning_rate": 8.333333333333333e-07,"loss": 0.0888,"mean_token_accuracy": 0.910922210663557,"num_tokens": 8177664.0,"step": 1000}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 2.1611969148616704e+16,"train_batch_size": 2,"trial_name": null,"trial_params": null
last-checkpoint/model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/rng_state.pth+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+453-3