Text Generation
Transformers
Safetensors
qwen3
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Run this model with HF Jobs
Run cuong1692001/Terminal-12k-top80 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/cuong1692001/Terminal-12k-top80. 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/cuong1692001/Terminal-12k-top80 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/cuong1692001/Terminal-12k-top80. 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/cuong1692001/Terminal-12k-top80. 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 cuong1692001/Terminal-12k-top80 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cuong1692001/Terminal-12k-top80 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cuong1692001/Terminal-12k-top80") 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("cuong1692001/Terminal-12k-top80") model = AutoModelForCausalLM.from_pretrained("cuong1692001/Terminal-12k-top80", 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 cuong1692001/Terminal-12k-top80 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cuong1692001/Terminal-12k-top80" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cuong1692001/Terminal-12k-top80", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cuong1692001/Terminal-12k-top80
- SGLang
How to use cuong1692001/Terminal-12k-top80 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 "cuong1692001/Terminal-12k-top80" \ --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": "cuong1692001/Terminal-12k-top80", "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 "cuong1692001/Terminal-12k-top80" \ --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": "cuong1692001/Terminal-12k-top80", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cuong1692001/Terminal-12k-top80 with Docker Model Runner:
docker model run hf.co/cuong1692001/Terminal-12k-top80
Add files using upload-large-folder tool
Browse filesFiles changed (19)
- README.mdAdded+58
- all_results.jsonAdded+9
- chat_template.jinjaAdded+89
- checkpoint-15654/config.jsonAdded+71
- checkpoint-15654/global_step15654/bf16_zero_pp_rank_0_mp_rank_00_optim_states.ptAdded+3
- checkpoint-15654/global_step15654/bf16_zero_pp_rank_1_mp_rank_00_optim_states.ptAdded+3
- checkpoint-15654/global_step15654/bf16_zero_pp_rank_2_mp_rank_00_optim_states.ptAdded+3
- checkpoint-15654/global_step15654/bf16_zero_pp_rank_3_mp_rank_00_optim_states.ptAdded+3
- checkpoint-15654/global_step15654/zero_pp_rank_0_mp_rank_00_model_states.ptAdded+3
- checkpoint-15654/global_step15654/zero_pp_rank_1_mp_rank_00_model_states.ptAdded+3
- checkpoint-7827/global_step7827/bf16_zero_pp_rank_3_mp_rank_00_optim_states.ptAdded+3
- checkpoint-7827/model.safetensorsAdded+3
- config.jsonAdded+71
- generation_config.jsonAdded+12
- tokenizer_config.jsonAdded+31
- train_results.jsonAdded+9
- trainer_log.jsonlAdded
- trainer_state.jsonAdded
- training_loss.pngAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---library_name: transformerslicense: othertags:- llama-factory- full- generated_from_trainermodel-index:- name: Terminal-12k-top80 results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# Terminal-12k-top80
This model is a fine-tuned version of Terminal-complete_8k on the nemotron_complete_top_80_12k dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 1e-05- train_batch_size: 1- eval_batch_size: 8- seed: 42- distributed_type: multi-GPU- num_devices: 4- total_train_batch_size: 4- total_eval_batch_size: 32- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: cosine- num_epochs: 2.0
### Training results
### Framework versions
- Transformers 5.6.0- Pytorch 2.11.0+cu130- Datasets 4.0.0- Tokenizers 0.22.2123456789{ "epoch": 2.0, "num_input_tokens_seen": 758245136, "total_flos": 1402256093970432.0, "train_loss": 0.27449998103812295, "train_runtime": 66971.8385, "train_samples_per_second": 0.935, "train_steps_per_second": 0.234}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0].role == 'system' %} {{- messages[0].content + '\n\n' }} {%- endif %} {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}{%- else %} {%- if messages[0].role == 'system' %} {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }} {%- endif %}{%- endif %}{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}{%- for message in messages[::-1] %} {%- set index = (messages|length - 1) - loop.index0 %} {%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %} {%- set ns.multi_step_tool = false %} {%- set ns.last_query_index = index %} {%- endif %}{%- endfor %}{%- for message in messages %} {%- if message.content is string %} {%- set content = message.content %} {%- else %} {%- set content = '' %} {%- endif %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) %} {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {%- set reasoning_content = '' %} {%- if message.reasoning_content is string %} {%- set reasoning_content = message.reasoning_content %} {%- else %} {%- if '</think>' in content %} {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %} {%- set content = content.split('</think>')[-1].lstrip('\n') %} {%- endif %} {%- endif %} {%- if loop.index0 > ns.last_query_index %} {%- if loop.last or (not loop.last and reasoning_content) %} {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }} {%- else %} {{- '<|im_start|>' + message.role + '\n' + content }} {%- endif %} {%- else %} {{- '<|im_start|>' + message.role + '\n' + content }} {%- endif %} {%- if message.tool_calls %} {%- for tool_call in message.tool_calls %} {%- if (loop.first and content) or (not loop.first) %} {{- '\n' }} {%- endif %} {%- if tool_call.function %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {%- if tool_call.arguments is string %} {{- tool_call.arguments }} {%- else %} {{- tool_call.arguments | tojson }} {%- endif %} {{- '}\n</tool_call>' }} {%- endfor %} {%- endif %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- content }} {{- '\n</tool_response>' }} {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} {{- '<|im_end|>\n' }} {%- endif %} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }} {%- if enable_thinking is defined and enable_thinking is false %} {{- '<think>\n\n</think>\n\n' }} {%- endif %}{%- endif %}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ "architectures": [ "Qwen3ForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": null, "dtype": "bfloat16", "eos_token_id": 151645, "head_dim": 128, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 12288, "layer_types": [ "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention" ], "max_position_embeddings": 40960, "max_window_layers": 36, "model_type": "qwen3", "num_attention_heads": 32, "num_hidden_layers": 36, "num_key_value_heads": 8, "pad_token_id": 151643, "rms_norm_eps": 1e-06, "rope_parameters": { "rope_theta": 1000000, "rope_type": "default" }, "sliding_window": null, "tie_word_embeddings": false, "transformers_version": "5.6.0", "use_cache": false, "use_sliding_window": false, "vocab_size": 151936}123version https://git-lfs.github.com/spec/v1oid sha256:5be3febaf9a8f0c3606b1ca667bdda1025f64ef8cf7f3165731f8ae1a9a034a2size 24572213075123version https://git-lfs.github.com/spec/v1oid sha256:5a4c56879e752951cd7aa1366b2a03696e4cc073b5aed8fd0fef79561a899052size 24572213075123version https://git-lfs.github.com/spec/v1oid sha256:d9449ffd4dce2c627e5c6954f72979fb88ba508727fb9cbe19c98db3db02e73bsize 24572213075123version https://git-lfs.github.com/spec/v1oid sha256:9588822d98cca9d4c6dd60b8e976a5b65381eb880c39054d4642030a7be98921size 24572213075123version https://git-lfs.github.com/spec/v1oid sha256:00f4b1002f2cf01ba1a54a9f5882cbcd245db715e5495134c036f18dcd1ae65esize 202796123version https://git-lfs.github.com/spec/v1oid sha256:5172fb79c17550de17fd03ff223f11e6a8cad039256a637a1354c8ea32c11847size 202796123version https://git-lfs.github.com/spec/v1oid sha256:a67b3e3452e981f48caae7ce33a08500dd185bd004fa8e33fb5df948190961eesize 24572213075123version https://git-lfs.github.com/spec/v1oid sha256:cbd83675b983e3b062ff570dc04d7f4377c386dda157731f505dd6ac2be2de5asize 163815172081234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ "architectures": [ "Qwen3ForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": null, "dtype": "bfloat16", "eos_token_id": 151645, "head_dim": 128, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 12288, "layer_types": [ "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention" ], "max_position_embeddings": 40960, "max_window_layers": 36, "model_type": "qwen3", "num_attention_heads": 32, "num_hidden_layers": 36, "num_key_value_heads": 8, "pad_token_id": 151643, "rms_norm_eps": 1e-06, "rope_parameters": { "rope_theta": 1000000, "rope_type": "default" }, "sliding_window": null, "tie_word_embeddings": false, "transformers_version": "5.6.0", "use_cache": false, "use_sliding_window": false, "vocab_size": 151936}123456789101112{ "do_sample": true, "eos_token_id": [ 151645, 151643 ], "pad_token_id": 151643, "temperature": 0.6, "top_k": 20, "top_p": 0.95, "transformers_version": "5.6.0"}12345678910111213141516171819202122232425262728293031{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "extra_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "is_local": true, "local_files_only": false, "model_max_length": 131072, "pad_token": "<|endoftext|>", "padding_side": "right", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}123456789{ "epoch": 2.0, "num_input_tokens_seen": 758245136, "total_flos": 1402256093970432.0, "train_loss": 0.27449998103812295, "train_runtime": 66971.8385, "train_samples_per_second": 0.935, "train_steps_per_second": 0.234}README.mdAdded+58
all_results.jsonAdded+9
chat_template.jinjaAdded+89
checkpoint-15654/config.jsonAdded+71
checkpoint-15654/global_step15654/bf16_zero_pp_rank_0_mp_rank_00_optim_states.ptAdded+3
checkpoint-15654/global_step15654/bf16_zero_pp_rank_1_mp_rank_00_optim_states.ptAdded+3
checkpoint-15654/global_step15654/bf16_zero_pp_rank_2_mp_rank_00_optim_states.ptAdded+3
checkpoint-15654/global_step15654/bf16_zero_pp_rank_3_mp_rank_00_optim_states.ptAdded+3
checkpoint-15654/global_step15654/zero_pp_rank_0_mp_rank_00_model_states.ptAdded+3
checkpoint-15654/global_step15654/zero_pp_rank_1_mp_rank_00_model_states.ptAdded+3
checkpoint-7827/global_step7827/bf16_zero_pp_rank_3_mp_rank_00_optim_states.ptAdded+3
checkpoint-7827/model.safetensorsAdded+3
config.jsonAdded+71
generation_config.jsonAdded+12
tokenizer_config.jsonAdded+31
train_results.jsonAdded+9
trainer_log.jsonlAdded
trainer_state.jsonAdded
training_loss.pngAdded
