Text Generation
Transformers
Safetensors
qwen2
evaluation-agent
cot-reasoning
checkpoint
qwen2.5
video-assessment
image-assessment
conversational
text-generation-inference
Instructions to use shulin16/ea-dev-final with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shulin16/ea-dev-final with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shulin16/ea-dev-final") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("shulin16/ea-dev-final") model = AutoModelForCausalLM.from_pretrained("shulin16/ea-dev-final", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use shulin16/ea-dev-final with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shulin16/ea-dev-final" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shulin16/ea-dev-final", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/shulin16/ea-dev-final
- SGLang
How to use shulin16/ea-dev-final 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 "shulin16/ea-dev-final" \ --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": "shulin16/ea-dev-final", "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 "shulin16/ea-dev-final" \ --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": "shulin16/ea-dev-final", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use shulin16/ea-dev-final with Docker Model Runner:
docker model run hf.co/shulin16/ea-dev-final
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 1.9137380191693292, | |
| "eval_steps": 500, | |
| "global_step": 300, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.06389776357827476, | |
| "grad_norm": 34.803749574601504, | |
| "learning_rate": 1.8750000000000003e-06, | |
| "loss": 3.2079, | |
| "step": 10 | |
| }, | |
| { | |
| "epoch": 0.12779552715654952, | |
| "grad_norm": 8.393596619540387, | |
| "learning_rate": 3.958333333333333e-06, | |
| "loss": 2.3077, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 0.19169329073482427, | |
| "grad_norm": 4.54582398918815, | |
| "learning_rate": 6.041666666666667e-06, | |
| "loss": 1.6795, | |
| "step": 30 | |
| }, | |
| { | |
| "epoch": 0.25559105431309903, | |
| "grad_norm": 2.88137111898239, | |
| "learning_rate": 8.125000000000001e-06, | |
| "loss": 1.3798, | |
| "step": 40 | |
| }, | |
| { | |
| "epoch": 0.3194888178913738, | |
| "grad_norm": 3.470416724559835, | |
| "learning_rate": 9.999862102299874e-06, | |
| "loss": 1.2363, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 0.38338658146964855, | |
| "grad_norm": 3.111739768988857, | |
| "learning_rate": 9.983323579940351e-06, | |
| "loss": 1.1359, | |
| "step": 60 | |
| }, | |
| { | |
| "epoch": 0.4472843450479233, | |
| "grad_norm": 2.63691114437442, | |
| "learning_rate": 9.939310009499348e-06, | |
| "loss": 1.0504, | |
| "step": 70 | |
| }, | |
| { | |
| "epoch": 0.5111821086261981, | |
| "grad_norm": 2.3175377091892346, | |
| "learning_rate": 9.868064055324204e-06, | |
| "loss": 1.0116, | |
| "step": 80 | |
| }, | |
| { | |
| "epoch": 0.5750798722044729, | |
| "grad_norm": 2.30928876775904, | |
| "learning_rate": 9.76997852474223e-06, | |
| "loss": 0.9679, | |
| "step": 90 | |
| }, | |
| { | |
| "epoch": 0.6389776357827476, | |
| "grad_norm": 2.2162135977370196, | |
| "learning_rate": 9.645594202357438e-06, | |
| "loss": 0.944, | |
| "step": 100 | |
| }, | |
| { | |
| "epoch": 0.7028753993610224, | |
| "grad_norm": 1.9916201881672246, | |
| "learning_rate": 9.495596868489588e-06, | |
| "loss": 0.921, | |
| "step": 110 | |
| }, | |
| { | |
| "epoch": 0.7667731629392971, | |
| "grad_norm": 2.2617620915408914, | |
| "learning_rate": 9.320813518194084e-06, | |
| "loss": 0.9022, | |
| "step": 120 | |
| }, | |
| { | |
| "epoch": 0.8306709265175719, | |
| "grad_norm": 2.4967363173333292, | |
| "learning_rate": 9.122207801708802e-06, | |
| "loss": 0.895, | |
| "step": 130 | |
| }, | |
| { | |
| "epoch": 0.8945686900958466, | |
| "grad_norm": 2.2712304513946906, | |
| "learning_rate": 8.900874711466436e-06, | |
| "loss": 0.864, | |
| "step": 140 | |
| }, | |
| { | |
| "epoch": 0.9584664536741214, | |
| "grad_norm": 1.9051776400686733, | |
| "learning_rate": 8.658034544965003e-06, | |
| "loss": 0.8608, | |
| "step": 150 | |
| }, | |
| { | |
| "epoch": 1.0191693290734825, | |
| "grad_norm": 1.9166530255225462, | |
| "learning_rate": 8.395026176781627e-06, | |
| "loss": 0.8301, | |
| "step": 160 | |
| }, | |
| { | |
| "epoch": 1.0830670926517572, | |
| "grad_norm": 2.064754006824319, | |
| "learning_rate": 8.113299676823614e-06, | |
| "loss": 0.7483, | |
| "step": 170 | |
| }, | |
| { | |
| "epoch": 1.1469648562300319, | |
| "grad_norm": 2.082411427574368, | |
| "learning_rate": 7.814408315515419e-06, | |
| "loss": 0.7494, | |
| "step": 180 | |
| }, | |
| { | |
| "epoch": 1.2108626198083068, | |
| "grad_norm": 2.2742401088702873, | |
| "learning_rate": 7.500000000000001e-06, | |
| "loss": 0.7281, | |
| "step": 190 | |
| }, | |
| { | |
| "epoch": 1.2747603833865815, | |
| "grad_norm": 2.177821331073625, | |
| "learning_rate": 7.1718081885702905e-06, | |
| "loss": 0.7254, | |
| "step": 200 | |
| }, | |
| { | |
| "epoch": 1.3386581469648562, | |
| "grad_norm": 2.270677294458059, | |
| "learning_rate": 6.831642333423068e-06, | |
| "loss": 0.7254, | |
| "step": 210 | |
| }, | |
| { | |
| "epoch": 1.4025559105431311, | |
| "grad_norm": 1.876950473520462, | |
| "learning_rate": 6.481377904428171e-06, | |
| "loss": 0.7098, | |
| "step": 220 | |
| }, | |
| { | |
| "epoch": 1.4664536741214058, | |
| "grad_norm": 1.9386787003754147, | |
| "learning_rate": 6.122946048915991e-06, | |
| "loss": 0.7025, | |
| "step": 230 | |
| }, | |
| { | |
| "epoch": 1.5303514376996805, | |
| "grad_norm": 2.098949126790221, | |
| "learning_rate": 5.75832294449293e-06, | |
| "loss": 0.7031, | |
| "step": 240 | |
| }, | |
| { | |
| "epoch": 1.5942492012779552, | |
| "grad_norm": 1.9482130248993954, | |
| "learning_rate": 5.389518903587016e-06, | |
| "loss": 0.699, | |
| "step": 250 | |
| }, | |
| { | |
| "epoch": 1.65814696485623, | |
| "grad_norm": 2.2416291315780845, | |
| "learning_rate": 5.0185672897946515e-06, | |
| "loss": 0.679, | |
| "step": 260 | |
| }, | |
| { | |
| "epoch": 1.7220447284345048, | |
| "grad_norm": 2.0218332843155133, | |
| "learning_rate": 4.647513307137076e-06, | |
| "loss": 0.6905, | |
| "step": 270 | |
| }, | |
| { | |
| "epoch": 1.7859424920127795, | |
| "grad_norm": 1.8220659272587023, | |
| "learning_rate": 4.278402724035868e-06, | |
| "loss": 0.6763, | |
| "step": 280 | |
| }, | |
| { | |
| "epoch": 1.8498402555910545, | |
| "grad_norm": 1.9040499495108065, | |
| "learning_rate": 3.913270594176665e-06, | |
| "loss": 0.6666, | |
| "step": 290 | |
| }, | |
| { | |
| "epoch": 1.9137380191693292, | |
| "grad_norm": 1.9584612801162502, | |
| "learning_rate": 3.5541300364475067e-06, | |
| "loss": 0.652, | |
| "step": 300 | |
| } | |
| ], | |
| "logging_steps": 10, | |
| "max_steps": 471, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 3, | |
| "save_steps": 100, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": false | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 23237095587840.0, | |
| "train_batch_size": 4, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |