Text Generation
Transformers
TensorBoard
Safetensors
qwen3
Generated from Trainer
trl
sft
conversational
text-generation-inference
Run this model with HF Jobs
Run shulijia/MNLP_M3_mcqa_model_base 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_base. 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_base 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_base. 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_base. 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_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shulijia/MNLP_M3_mcqa_model_base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shulijia/MNLP_M3_mcqa_model_base") 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_base") model = AutoModelForCausalLM.from_pretrained("shulijia/MNLP_M3_mcqa_model_base", 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_base 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_base" # 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_base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/shulijia/MNLP_M3_mcqa_model_base
- SGLang
How to use shulijia/MNLP_M3_mcqa_model_base 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_base" \ --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_base", "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_base" \ --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_base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use shulijia/MNLP_M3_mcqa_model_base with Docker Model Runner:
docker model run hf.co/shulijia/MNLP_M3_mcqa_model_base
Training in progress, step 2000, checkpoint
Browse filesFiles changed (4)
123version https://git-lfs.github.com/spec/v1oid sha256:e6cfd6605e0874a6c521cc4ee3fe38a5bb33baef261b9efa1e46df4f055c3f8esize 2384234968123version https://git-lfs.github.com/spec/v1oid sha256:e31a11b8093a7dc9efbf932e92cc2201b7cba0591316ca570ba6fc5cf01792fbsize 2384234968
123version https://git-lfs.github.com/spec/v1oid sha256:928e17abce7a7fe102b35a79e0e131ef24423bcb667a886c350b7087014c519fsize 4768662910123version https://git-lfs.github.com/spec/v1oid sha256:6a1c8f58f9175b9d2f69570c18408756e4438131f09244dd384c4cf26f3fe8f8size 4768662910
123version https://git-lfs.github.com/spec/v1oid sha256:bbe5b311be0f47008f4e82c3464fa1f50d8fcc11a051e225ec4b71f90fadd115size 1064123version https://git-lfs.github.com/spec/v1oid sha256:2d8715e1d936b90bedf8fa9339815a5475f6dd3a74a7e90e59a4e0f3a7bbb964size 1064
1 unmodified line23456789101347 unmodified lines13581359136013611362136313 unmodified lines13771378137913801381138213831 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 0.6993822123790652,"eval_steps": 100,"global_step": 1500,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,1347 unmodified lines"mean_token_accuracy": 0.9701320916414261,"num_tokens": 6144000.0,"step": 1500}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 1.6237392297984e+16,"train_batch_size": 1,"trial_name": null,"trial_params": null1 unmodified line23456789101347 unmodified lines13581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181313 unmodified lines18271828182918301831183218331 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 0.9325096165054202,"eval_steps": 100,"global_step": 2000,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,1347 unmodified lines"mean_token_accuracy": 0.9701320916414261,"num_tokens": 6144000.0,"step": 1500},{"epoch": 0.7040447604615923,"grad_norm": 0.8311156034469604,"learning_rate": 1.6459305339554174e-05,"loss": 0.1555,"mean_token_accuracy": 0.9713307194411754,"num_tokens": 6184960.0,"step": 1510},{"epoch": 0.7087073085441193,"grad_norm": 0.9725819230079651,"learning_rate": 1.6200103680663556e-05,"loss": 0.1462,"mean_token_accuracy": 0.973532286286354,"num_tokens": 6225920.0,"step": 1520},{"epoch": 0.7133698566266464,"grad_norm": 0.9252966046333313,"learning_rate": 1.5940902021772942e-05,"loss": 0.162,"mean_token_accuracy": 0.9703277841210365,"num_tokens": 6266880.0,"step": 1530},{"epoch": 0.7180324047091735,"grad_norm": 0.8305699825286865,"learning_rate": 1.5681700362882324e-05,"loss": 0.1474,"mean_token_accuracy": 0.972749511897564,"num_tokens": 6307840.0,"step": 1540},{"epoch": 0.7226949527917007,"grad_norm": 0.7190976738929749,"learning_rate": 1.5422498703991706e-05,"loss": 0.1608,"mean_token_accuracy": 0.9691780842840672,"num_tokens": 6348800.0,"step": 1550},{"epoch": 0.7273575008742278,"grad_norm": 0.8407421112060547,"learning_rate": 1.5163297045101089e-05,"loss": 0.1531,"mean_token_accuracy": 0.9719422668218612,"num_tokens": 6389760.0,"step": 1560},{"epoch": 0.7320200489567549,"grad_norm": 0.7899882793426514,"learning_rate": 1.4904095386210473e-05,"loss": 0.1542,"mean_token_accuracy": 0.9712328717112542,"num_tokens": 6430720.0,"step": 1570},{"epoch": 0.736682597039282,"grad_norm": 1.0670727491378784,"learning_rate": 1.4644893727319855e-05,"loss": 0.1674,"mean_token_accuracy": 0.9696428544819355,"num_tokens": 6471680.0,"step": 1580},{"epoch": 0.741345145121809,"grad_norm": 0.6712631583213806,"learning_rate": 1.4385692068429237e-05,"loss": 0.1651,"mean_token_accuracy": 0.969006847590208,"num_tokens": 6512640.0,"step": 1590},{"epoch": 0.7460076932043361,"grad_norm": 0.9020397663116455,"learning_rate": 1.4126490409538623e-05,"loss": 0.1505,"mean_token_accuracy": 0.9717221111059189,"num_tokens": 6553600.0,"step": 1600},{"epoch": 0.7506702412868632,"grad_norm": 0.7148446440696716,"learning_rate": 1.3867288750648005e-05,"loss": 0.1539,"mean_token_accuracy": 0.9713062599301339,"num_tokens": 6594560.0,"step": 1610},{"epoch": 0.7553327893693904,"grad_norm": 0.8199096322059631,"learning_rate": 1.3608087091757387e-05,"loss": 0.1376,"mean_token_accuracy": 0.9746330708265305,"num_tokens": 6635520.0,"step": 1620},{"epoch": 0.7599953374519175,"grad_norm": 0.8245125412940979,"learning_rate": 1.334888543286677e-05,"loss": 0.1693,"mean_token_accuracy": 0.9678082190454006,"num_tokens": 6676480.0,"step": 1630},{"epoch": 0.7646578855344446,"grad_norm": 0.9677536487579346,"learning_rate": 1.3089683773976155e-05,"loss": 0.1564,"mean_token_accuracy": 0.9712084144353866,"num_tokens": 6717440.0,"step": 1640},{"epoch": 0.7693204336169717,"grad_norm": 0.7333071827888489,"learning_rate": 1.2830482115085537e-05,"loss": 0.1475,"mean_token_accuracy": 0.973116434365511,"num_tokens": 6758400.0,"step": 1650},{"epoch": 0.7739829816994988,"grad_norm": 0.7345200181007385,"learning_rate": 1.257128045619492e-05,"loss": 0.148,"mean_token_accuracy": 0.9736301332712174,"num_tokens": 6799360.0,"step": 1660},{"epoch": 0.7786455297820258,"grad_norm": 0.6349977850914001,"learning_rate": 1.2312078797304304e-05,"loss": 0.1381,"mean_token_accuracy": 0.9739970602095127,"num_tokens": 6840320.0,"step": 1670},{"epoch": 0.783308077864553,"grad_norm": 0.8804098963737488,"learning_rate": 1.2052877138413686e-05,"loss": 0.1414,"mean_token_accuracy": 0.9738258272409439,"num_tokens": 6881280.0,"step": 1680},{"epoch": 0.7879706259470801,"grad_norm": 0.7577178478240967,"learning_rate": 1.179367547952307e-05,"loss": 0.1515,"mean_token_accuracy": 0.9717954978346824,"num_tokens": 6922240.0,"step": 1690},{"epoch": 0.7926331740296072,"grad_norm": 0.6457813382148743,"learning_rate": 1.1534473820632452e-05,"loss": 0.1502,"mean_token_accuracy": 0.9720645777881145,"num_tokens": 6963200.0,"step": 1700},{"epoch": 0.7972957221121343,"grad_norm": 0.6095024347305298,"learning_rate": 1.1275272161741836e-05,"loss": 0.1334,"mean_token_accuracy": 0.9746575340628624,"num_tokens": 7004160.0,"step": 1710},{"epoch": 0.8019582701946614,"grad_norm": 0.7102235555648804,"learning_rate": 1.1016070502851218e-05,"loss": 0.1515,"mean_token_accuracy": 0.9720401152968406,"num_tokens": 7045120.0,"step": 1720},{"epoch": 0.8066208182771885,"grad_norm": 1.1085419654846191,"learning_rate": 1.0756868843960602e-05,"loss": 0.1646,"mean_token_accuracy": 0.9701320923864841,"num_tokens": 7086080.0,"step": 1730},{"epoch": 0.8112833663597155,"grad_norm": 0.7608530521392822,"learning_rate": 1.0497667185069986e-05,"loss": 0.1704,"mean_token_accuracy": 0.9674168258905411,"num_tokens": 7127040.0,"step": 1740},{"epoch": 0.8159459144422427,"grad_norm": 0.6865259408950806,"learning_rate": 1.0238465526179369e-05,"loss": 0.1434,"mean_token_accuracy": 0.9727005824446678,"num_tokens": 7168000.0,"step": 1750},{"epoch": 0.8206084625247698,"grad_norm": 0.801145613193512,"learning_rate": 9.979263867288752e-06,"loss": 0.1506,"mean_token_accuracy": 0.9717465743422509,"num_tokens": 7208960.0,"step": 1760},{"epoch": 0.8252710106072969,"grad_norm": 0.741914689540863,"learning_rate": 9.720062208398135e-06,"loss": 0.1425,"mean_token_accuracy": 0.974363987147808,"num_tokens": 7249920.0,"step": 1770},{"epoch": 0.829933558689824,"grad_norm": 0.9089287519454956,"learning_rate": 9.460860549507517e-06,"loss": 0.1521,"mean_token_accuracy": 0.9711350277066231,"num_tokens": 7290880.0,"step": 1780},{"epoch": 0.8345961067723511,"grad_norm": 0.8246015310287476,"learning_rate": 9.201658890616901e-06,"loss": 0.15,"mean_token_accuracy": 0.9718933448195457,"num_tokens": 7331840.0,"step": 1790},{"epoch": 0.8392586548548782,"grad_norm": 0.8156935572624207,"learning_rate": 8.942457231726283e-06,"loss": 0.142,"mean_token_accuracy": 0.9738013677299022,"num_tokens": 7372800.0,"step": 1800},{"epoch": 0.8439212029374052,"grad_norm": 0.69393390417099,"learning_rate": 8.683255572835665e-06,"loss": 0.1479,"mean_token_accuracy": 0.9710616417229175,"num_tokens": 7413760.0,"step": 1810},{"epoch": 0.8485837510199324,"grad_norm": 0.7503421902656555,"learning_rate": 8.42405391394505e-06,"loss": 0.1466,"mean_token_accuracy": 0.9730430498719216,"num_tokens": 7454720.0,"step": 1820},{"epoch": 0.8532462991024595,"grad_norm": 0.7439912557601929,"learning_rate": 8.164852255054432e-06,"loss": 0.1428,"mean_token_accuracy": 0.9737769052386284,"num_tokens": 7495680.0,"step": 1830},{"epoch": 0.8579088471849866,"grad_norm": 0.8494424819946289,"learning_rate": 7.905650596163816e-06,"loss": 0.167,"mean_token_accuracy": 0.9689579203724861,"num_tokens": 7536640.0,"step": 1840},{"epoch": 0.8625713952675137,"grad_norm": 0.6502055525779724,"learning_rate": 7.646448937273198e-06,"loss": 0.149,"mean_token_accuracy": 0.9721379652619362,"num_tokens": 7577600.0,"step": 1850},{"epoch": 0.8672339433500408,"grad_norm": 0.7619404196739197,"learning_rate": 7.387247278382582e-06,"loss": 0.1667,"mean_token_accuracy": 0.9687866933643818,"num_tokens": 7618560.0,"step": 1860},{"epoch": 0.8718964914325679,"grad_norm": 0.9785134196281433,"learning_rate": 7.128045619491964e-06,"loss": 0.1487,"mean_token_accuracy": 0.971722113341093,"num_tokens": 7659520.0,"step": 1870},{"epoch": 0.876559039515095,"grad_norm": 0.7283388376235962,"learning_rate": 6.868843960601348e-06,"loss": 0.1448,"mean_token_accuracy": 0.9735322870314121,"num_tokens": 7700480.0,"step": 1880},{"epoch": 0.8812215875976221,"grad_norm": 0.9719959497451782,"learning_rate": 6.60964230171073e-06,"loss": 0.1474,"mean_token_accuracy": 0.9720156542956829,"num_tokens": 7741440.0,"step": 1890},{"epoch": 0.8858841356801492,"grad_norm": 0.9906563758850098,"learning_rate": 6.350440642820114e-06,"loss": 0.1396,"mean_token_accuracy": 0.9740704469382763,"num_tokens": 7782400.0,"step": 1900},{"epoch": 0.8905466837626763,"grad_norm": 0.8525891900062561,"learning_rate": 6.091238983929497e-06,"loss": 0.1605,"mean_token_accuracy": 0.9702054806053638,"num_tokens": 7823360.0,"step": 1910},{"epoch": 0.8952092318452034,"grad_norm": 0.9537765383720398,"learning_rate": 5.8320373250388805e-06,"loss": 0.1502,"mean_token_accuracy": 0.9719178065657615,"num_tokens": 7864320.0,"step": 1920},{"epoch": 0.8998717799277305,"grad_norm": 0.8483870625495911,"learning_rate": 5.572835666148264e-06,"loss": 0.1405,"mean_token_accuracy": 0.9747798413038253,"num_tokens": 7905280.0,"step": 1930},{"epoch": 0.9045343280102576,"grad_norm": 1.526374101638794,"learning_rate": 5.313634007257647e-06,"loss": 0.1619,"mean_token_accuracy": 0.9677592933177948,"num_tokens": 7946240.0,"step": 1940},{"epoch": 0.9091968760927847,"grad_norm": 0.6227525472640991,"learning_rate": 5.05443234836703e-06,"loss": 0.149,"mean_token_accuracy": 0.9724804274737835,"num_tokens": 7987200.0,"step": 1950},{"epoch": 0.9138594241753119,"grad_norm": 0.6604171395301819,"learning_rate": 4.795230689476413e-06,"loss": 0.1502,"mean_token_accuracy": 0.972676120698452,"num_tokens": 8028160.0,"step": 1960},{"epoch": 0.9185219722578389,"grad_norm": 0.9170063138008118,"learning_rate": 4.536029030585796e-06,"loss": 0.1492,"mean_token_accuracy": 0.9711839511990548,"num_tokens": 8069120.0,"step": 1970},{"epoch": 0.923184520340366,"grad_norm": 0.6942632794380188,"learning_rate": 4.276827371695178e-06,"loss": 0.1558,"mean_token_accuracy": 0.9697651632130146,"num_tokens": 8110080.0,"step": 1980},{"epoch": 0.9278470684228931,"grad_norm": 0.7074636816978455,"learning_rate": 4.017625712804562e-06,"loss": 0.1485,"mean_token_accuracy": 0.9726027406752109,"num_tokens": 8151040.0,"step": 1990},{"epoch": 0.9325096165054202,"grad_norm": 0.6494550704956055,"learning_rate": 3.7584240539139454e-06,"loss": 0.1452,"mean_token_accuracy": 0.9734833620488643,"num_tokens": 8192000.0,"step": 2000}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 2.1649856397312e+16,"train_batch_size": 1,"trial_name": null,"trial_params": null
last-checkpoint/model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+453-3