Text Generation
Transformers
Safetensors
qwen3
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use yueqis/unified-agent-code-mix-sample with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yueqis/unified-agent-code-mix-sample with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yueqis/unified-agent-code-mix-sample") 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("yueqis/unified-agent-code-mix-sample") model = AutoModelForCausalLM.from_pretrained("yueqis/unified-agent-code-mix-sample", 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 yueqis/unified-agent-code-mix-sample with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yueqis/unified-agent-code-mix-sample" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yueqis/unified-agent-code-mix-sample", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/yueqis/unified-agent-code-mix-sample
- SGLang
How to use yueqis/unified-agent-code-mix-sample 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 "yueqis/unified-agent-code-mix-sample" \ --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": "yueqis/unified-agent-code-mix-sample", "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 "yueqis/unified-agent-code-mix-sample" \ --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": "yueqis/unified-agent-code-mix-sample", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use yueqis/unified-agent-code-mix-sample with Docker Model Runner:
docker model run hf.co/yueqis/unified-agent-code-mix-sample
Download trainer_log.jsonl from yueqis/unified-agent-code-mix-sample: direct link, hf CLI and curl.
- Browser
- Download file 2.08 kB
-
https://huggingface.co/yueqis/unified-agent-code-mix-sample/resolve/main/trainer_log.jsonl
- Command line
-
hf download hf://yueqis/unified-agent-code-mix-sample/trainer_log.jsonl
-
curl -L -o trainer_log.jsonl https://huggingface.co/yueqis/unified-agent-code-mix-sample/resolve/main/trainer_log.jsonl
2.08 kB
| {"current_steps": 10, "total_steps": 107, "loss": 0.8236, "lr": 9.978246739845095e-06, "epoch": 0.09296920395119117, "percentage": 9.35, "elapsed_time": "0:03:48", "remaining_time": "0:36:57"} | |
| {"current_steps": 20, "total_steps": 107, "loss": 0.5002, "lr": 9.596765194911182e-06, "epoch": 0.18593840790238234, "percentage": 18.69, "elapsed_time": "0:07:20", "remaining_time": "0:31:56"} | |
| {"current_steps": 30, "total_steps": 107, "loss": 0.4698, "lr": 8.774114695766286e-06, "epoch": 0.2789076118535735, "percentage": 28.04, "elapsed_time": "0:10:51", "remaining_time": "0:27:51"} | |
| {"current_steps": 40, "total_steps": 107, "loss": 0.4408, "lr": 7.589248124491627e-06, "epoch": 0.37187681580476467, "percentage": 37.38, "elapsed_time": "0:14:17", "remaining_time": "0:23:57"} | |
| {"current_steps": 50, "total_steps": 107, "loss": 0.4316, "lr": 6.15588161057485e-06, "epoch": 0.46484601975595585, "percentage": 46.73, "elapsed_time": "0:17:47", "remaining_time": "0:20:16"} | |
| {"current_steps": 60, "total_steps": 107, "loss": 0.439, "lr": 4.611580763554969e-06, "epoch": 0.557815223707147, "percentage": 56.07, "elapsed_time": "0:21:19", "remaining_time": "0:16:42"} | |
| {"current_steps": 70, "total_steps": 107, "loss": 0.4321, "lr": 3.104557980798104e-06, "epoch": 0.6507844276583382, "percentage": 65.42, "elapsed_time": "0:24:49", "remaining_time": "0:13:07"} | |
| {"current_steps": 80, "total_steps": 107, "loss": 0.4268, "lr": 1.7794479427480115e-06, "epoch": 0.7437536316095293, "percentage": 74.77, "elapsed_time": "0:28:23", "remaining_time": "0:09:34"} | |
| {"current_steps": 90, "total_steps": 107, "loss": 0.421, "lr": 7.634264752111131e-07, "epoch": 0.8367228355607205, "percentage": 84.11, "elapsed_time": "0:31:52", "remaining_time": "0:06:01"} | |
| {"current_steps": 100, "total_steps": 107, "loss": 0.435, "lr": 1.540050040016694e-07, "epoch": 0.9296920395119117, "percentage": 93.46, "elapsed_time": "0:35:20", "remaining_time": "0:02:28"} | |
| {"current_steps": 107, "total_steps": 107, "epoch": 0.9947704822777454, "percentage": 100.0, "elapsed_time": "0:50:33", "remaining_time": "0:00:00"} | |