Text Generation
Transformers
Safetensors
English
qwen3_5_moe
image-text-to-text
mira
mid-training
data-selection
rubric-scorer
source-aware
Mixture of Experts
qwen3
conversational
Instructions to use whw06/MIRA-Agent-Group4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use whw06/MIRA-Agent-Group4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="whw06/MIRA-Agent-Group4") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("whw06/MIRA-Agent-Group4") model = AutoModelForImageTextToText.from_pretrained("whw06/MIRA-Agent-Group4") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use whw06/MIRA-Agent-Group4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "whw06/MIRA-Agent-Group4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "whw06/MIRA-Agent-Group4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/whw06/MIRA-Agent-Group4
- SGLang
How to use whw06/MIRA-Agent-Group4 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 "whw06/MIRA-Agent-Group4" \ --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": "whw06/MIRA-Agent-Group4", "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 "whw06/MIRA-Agent-Group4" \ --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": "whw06/MIRA-Agent-Group4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use whw06/MIRA-Agent-Group4 with Docker Model Runner:
docker model run hf.co/whw06/MIRA-Agent-Group4
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 2.0, | |
| "eval_steps": 500, | |
| "global_step": 122, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.16494845360824742, | |
| "grad_norm": 2.9061486010905555, | |
| "learning_rate": 4.99626950870707e-06, | |
| "loss": 1.1360912322998047, | |
| "step": 10 | |
| }, | |
| { | |
| "epoch": 0.32989690721649484, | |
| "grad_norm": 0.6164337792511091, | |
| "learning_rate": 4.8668675889776095e-06, | |
| "loss": 0.6491106986999512, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 0.4948453608247423, | |
| "grad_norm": 0.35672779855803904, | |
| "learning_rate": 4.561925927872421e-06, | |
| "loss": 0.5490317344665527, | |
| "step": 30 | |
| }, | |
| { | |
| "epoch": 0.6597938144329897, | |
| "grad_norm": 0.2943263275586171, | |
| "learning_rate": 4.104060653380403e-06, | |
| "loss": 0.5126861572265625, | |
| "step": 40 | |
| }, | |
| { | |
| "epoch": 0.8247422680412371, | |
| "grad_norm": 0.26771084287039937, | |
| "learning_rate": 3.527229538316371e-06, | |
| "loss": 0.4959553718566895, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 0.9896907216494846, | |
| "grad_norm": 0.2526261108288278, | |
| "learning_rate": 2.8742135076578608e-06, | |
| "loss": 0.48491363525390624, | |
| "step": 60 | |
| }, | |
| { | |
| "epoch": 1.1484536082474226, | |
| "grad_norm": 0.26333199686215103, | |
| "learning_rate": 2.1934437730492544e-06, | |
| "loss": 0.4727530002593994, | |
| "step": 70 | |
| }, | |
| { | |
| "epoch": 1.31340206185567, | |
| "grad_norm": 0.24714207754984813, | |
| "learning_rate": 1.5354099113921614e-06, | |
| "loss": 0.4693778038024902, | |
| "step": 80 | |
| }, | |
| { | |
| "epoch": 1.4783505154639176, | |
| "grad_norm": 0.24110822645306054, | |
| "learning_rate": 9.489152839010799e-07, | |
| "loss": 0.465252685546875, | |
| "step": 90 | |
| }, | |
| { | |
| "epoch": 1.6432989690721649, | |
| "grad_norm": 0.23071324603823393, | |
| "learning_rate": 4.774575140626317e-07, | |
| "loss": 0.4631986141204834, | |
| "step": 100 | |
| }, | |
| { | |
| "epoch": 1.8082474226804124, | |
| "grad_norm": 0.22609031836413374, | |
| "learning_rate": 1.5600246788994938e-07, | |
| "loss": 0.4641274929046631, | |
| "step": 110 | |
| }, | |
| { | |
| "epoch": 1.97319587628866, | |
| "grad_norm": 0.23062918780152833, | |
| "learning_rate": 8.390995598676067e-09, | |
| "loss": 0.4627840042114258, | |
| "step": 120 | |
| } | |
| ], | |
| "logging_steps": 10, | |
| "max_steps": 122, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 2, | |
| "save_steps": 100, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": true | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 5.591335448032051e+16, | |
| "train_batch_size": 1, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |