Instructions to use Ben-3id/Tutorial-FineTune with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Ben-3id/Tutorial-FineTune with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-0.5B") model = PeftModel.from_pretrained(base_model, "Ben-3id/Tutorial-FineTune") - Transformers
How to use Ben-3id/Tutorial-FineTune with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ben-3id/Tutorial-FineTune") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Ben-3id/Tutorial-FineTune", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ben-3id/Tutorial-FineTune with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ben-3id/Tutorial-FineTune" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ben-3id/Tutorial-FineTune", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ben-3id/Tutorial-FineTune
- SGLang
How to use Ben-3id/Tutorial-FineTune 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 "Ben-3id/Tutorial-FineTune" \ --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": "Ben-3id/Tutorial-FineTune", "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 "Ben-3id/Tutorial-FineTune" \ --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": "Ben-3id/Tutorial-FineTune", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Ben-3id/Tutorial-FineTune with Docker Model Runner:
docker model run hf.co/Ben-3id/Tutorial-FineTune
First Adapter
Browse filesFiles changed (31)
- .gitattributes+3
- README.mdAdded+62
- adapter_config.jsonAdded+47
- adapter_model.safetensorsAdded+3
- chat_template.jinjaAdded+54
- checkpoint-1200/README.mdAdded+209
- checkpoint-1200/adapter_config.jsonAdded+47
- checkpoint-1200/adapter_model.safetensorsAdded+3
- checkpoint-1200/chat_template.jinjaAdded+54
- checkpoint-1200/optimizer.ptAdded+3
- checkpoint-1200/rng_state.pthAdded+3
- checkpoint-1200/scaler.ptAdded+3
- checkpoint-1200/scheduler.ptAdded+3
- checkpoint-1200/tokenizer.jsonAdded+3
- checkpoint-1200/tokenizer_config.jsonAdded+30
- checkpoint-1200/trainer_state.jsonAdded+176
- checkpoint-1200/training_args.binAdded+3
- checkpoint-1225/README.mdAdded+209
- checkpoint-1225/adapter_config.jsonAdded+47
- checkpoint-1225/adapter_model.safetensorsAdded+3
- checkpoint-1225/chat_template.jinjaAdded+54
- checkpoint-1225/optimizer.ptAdded+3
- checkpoint-1225/rng_state.pthAdded+3
- checkpoint-1225/scaler.ptAdded+3
- checkpoint-1225/scheduler.ptAdded+3
- checkpoint-1225/tokenizer.jsonAdded+3
- checkpoint-1225/tokenizer_config.jsonAdded+30
- checkpoint-1225/trainer_state.jsonAdded+187
- checkpoint-1225/training_args.binAdded+3
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+30
32 unmodified lines33343536373832 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textcheckpoint-1200/tokenizer.json filter=lfs diff=lfs merge=lfs -textcheckpoint-1225/tokenizer.json filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162---base_model: Qwen/Qwen2.5-0.5Blibrary_name: peftmodel_name: finetune-resulttags:- base_model:adapter:Qwen/Qwen2.5-0.5B- lora- sft- transformers- trllicence: licensepipeline_tag: text-generation---
# Model Card for finetune-result
This model is a fine-tuned version of [Qwen/Qwen2.5-0.5B](https://huggingface.co/Qwen/Qwen2.5-0.5B).It has been trained using [TRL](https://github.com/huggingface/trl).
## Quick start
```pythonfrom transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"generator = pipeline("text-generation", model="None", device_map="auto")output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```
## Training procedure
This model was trained with SFT.
### Framework versions
- PEFT 0.20.0- TRL: 1.16.0- Transformers: 5.16.1- Pytorch: 2.11.0+cu128- Datasets: 4.8.5- Tokenizers: 0.23.1
## Citations
Cite TRL as: ```bibtex@software{vonwerra2020trl, title = {{TRL: Transformers Reinforcement Learning}}, author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin}, license = {Apache-2.0}, url = {https://github.com/huggingface/trl}, year = {2020}}```1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ "alora_invocation_tokens": null, "alpha_pattern": {}, "arrow_config": null, "auto_mapping": null, "base_model_name_or_path": "Qwen/Qwen2.5-0.5B", "bias": "none", "corda_config": null, "ensure_weight_tying": false, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 16, "lora_bias": false, "lora_dropout": 0.1, "lora_ga_config": null, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "monteclora_config": null, "peft_type": "LORA", "peft_version": "0.20.0", "qalora_group_size": 16, "r": 32, "rank_pattern": {}, "revision": null, "target_modules": [ "k_proj", "o_proj", "v_proj", "q_proj" ], "target_parameters": null, "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_bdlora": null, "use_dora": false, "use_qalora": false, "use_rslora": false, "velora_config": null}123version https://git-lfs.github.com/spec/v1oid sha256:ddf710f2cb42698fea4e6dfbfab21351c4aea371da9fb26c471a5ec5624c0ebbsize 17326944123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0]['role'] == 'system' %} {{- messages[0]['content'] }} {%- else %} {{- 'You are a helpful assistant.' }} {%- endif %} {{- "\n\n# 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' }} {%- else %} {{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }} {%- endif %}{%- endif %}{%- for message in messages %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {{- '<|im_start|>' + message.role }} {%- if message.content %} {{- '\n' + message.content }} {%- endif %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '\n<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {{- tool_call.arguments | tojson }} {{- '}\n</tool_call>' }} {%- endfor %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- message.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' }}{%- endif %}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209---base_model: Qwen/Qwen2.5-0.5Blibrary_name: peftpipeline_tag: text-generationtags:- base_model:adapter:Qwen/Qwen2.5-0.5B- lora- sft- transformers- trl---
# Model Card for Model ID
<!-- Provide a quick summary of what the model is/does. -->
## Model Details
### Model Description
<!-- Provide a longer summary of what this model is. -->
- **Developed by:** [More Information Needed]- **Funded by [optional]:** [More Information Needed]- **Shared by [optional]:** [More Information Needed]- **Model type:** [More Information Needed]- **Language(s) (NLP):** [More Information Needed]- **License:** [More Information Needed]- **Finetuned from model [optional]:** [More Information Needed]
### Model Sources [optional]
<!-- Provide the basic links for the model. -->
- **Repository:** [More Information Needed]- **Paper [optional]:** [More Information Needed]- **Demo [optional]:** [More Information Needed]
## Uses
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
### Direct Use
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
[More Information Needed]
### Downstream Use [optional]
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
[More Information Needed]
### Out-of-Scope Use
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
[More Information Needed]
## Bias, Risks, and Limitations
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
[More Information Needed]
### Recommendations
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
## How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
## Training Details
### Training Data
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
[More Information Needed]
### Training Procedure
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
#### Preprocessing [optional]
[More Information Needed]
#### Training Hyperparameters
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
#### Speeds, Sizes, Times [optional]
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
[More Information Needed]
## Evaluation
<!-- This section describes the evaluation protocols and provides the results. -->
### Testing Data, Factors & Metrics
#### Testing Data
<!-- This should link to a Dataset Card if possible. -->
[More Information Needed]
#### Factors
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
[More Information Needed]
#### Metrics
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
[More Information Needed]
### Results
[More Information Needed]
#### Summary
## Model Examination [optional]
<!-- Relevant interpretability work for the model goes here -->
[More Information Needed]
## Environmental Impact
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** [More Information Needed]- **Hours used:** [More Information Needed]- **Cloud Provider:** [More Information Needed]- **Compute Region:** [More Information Needed]- **Carbon Emitted:** [More Information Needed]
## Technical Specifications [optional]
### Model Architecture and Objective
[More Information Needed]
### Compute Infrastructure
[More Information Needed]
#### Hardware
[More Information Needed]
#### Software
[More Information Needed]
## Citation [optional]
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
**BibTeX:**
[More Information Needed]
**APA:**
[More Information Needed]
## Glossary [optional]
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
[More Information Needed]
## More Information [optional]
[More Information Needed]
## Model Card Authors [optional]
[More Information Needed]
## Model Card Contact
[More Information Needed]### Framework versions
- PEFT 0.20.01234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ "alora_invocation_tokens": null, "alpha_pattern": {}, "arrow_config": null, "auto_mapping": null, "base_model_name_or_path": "Qwen/Qwen2.5-0.5B", "bias": "none", "corda_config": null, "ensure_weight_tying": false, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 16, "lora_bias": false, "lora_dropout": 0.1, "lora_ga_config": null, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "monteclora_config": null, "peft_type": "LORA", "peft_version": "0.20.0", "qalora_group_size": 16, "r": 32, "rank_pattern": {}, "revision": null, "target_modules": [ "k_proj", "o_proj", "v_proj", "q_proj" ], "target_parameters": null, "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_bdlora": null, "use_dora": false, "use_qalora": false, "use_rslora": false, "velora_config": null}123version https://git-lfs.github.com/spec/v1oid sha256:a51d3bc9a4f2d754d8fd9cf3ce7f966989e318b2abd05046e13c14f5eff1c291size 17326944123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0]['role'] == 'system' %} {{- messages[0]['content'] }} {%- else %} {{- 'You are a helpful assistant.' }} {%- endif %} {{- "\n\n# 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' }} {%- else %} {{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }} {%- endif %}{%- endif %}{%- for message in messages %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {{- '<|im_start|>' + message.role }} {%- if message.content %} {{- '\n' + message.content }} {%- endif %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '\n<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {{- tool_call.arguments | tojson }} {{- '}\n</tool_call>' }} {%- endfor %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- message.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' }}{%- endif %}123version https://git-lfs.github.com/spec/v1oid sha256:25b11324805df16c81fa8a9a1c5f6cb52244c6fdea590dbca4b2a7ec4387b8b2size 34767243123version https://git-lfs.github.com/spec/v1oid sha256:d87a9b6ba56cbbab776e3bf96f1ea50149b727878f448572e7102c83bb104acbsize 14645123version https://git-lfs.github.com/spec/v1oid sha256:f759a661911cddbb16f2fa850fce320572ce4b430490e0673868af4ebd0bb06asize 1383123version https://git-lfs.github.com/spec/v1oid sha256:5ef5f5acbadeb74ea909ff1d423b4e572ba3087bd131e5c96b0c08fde89eb308size 1465123version https://git-lfs.github.com/spec/v1oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8size 11421892123456789101112131415161718192021222324252627282930{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|endoftext|>", "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": false, "local_files_only": false, "model_max_length": 131072, "pad_token": "<|endoftext|>", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176{ "best_global_step": null, "best_metric": null, "best_model_checkpoint": null, "epoch": 0.9795918367346939, "eval_steps": 500, "global_step": 1200, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "entropy": 2.65348322480917, "epoch": 0.08163265306122448, "grad_norm": 0.3858589231967926, "learning_rate": 9.839710975789937e-05, "loss": 1.8520664978027344, "mean_token_accuracy": 0.4766763444710523, "num_tokens": 73931.0, "step": 100 }, { "entropy": 2.221065641641617, "epoch": 0.16326530612244897, "grad_norm": 0.4490025043487549, "learning_rate": 9.362871573431047e-05, "loss": 1.7005967712402343, "mean_token_accuracy": 0.5576045931689442, "num_tokens": 156572.0, "step": 200 }, { "entropy": 2.128404154591262, "epoch": 0.24489795918367346, "grad_norm": 0.568897008895874, "learning_rate": 8.600655546367782e-05, "loss": 1.6693995666503907, "mean_token_accuracy": 0.5640898733213544, "num_tokens": 244559.0, "step": 300 }, { "entropy": 2.096652089692652, "epoch": 0.32653061224489793, "grad_norm": 0.6031016111373901, "learning_rate": 7.602919653718044e-05, "loss": 1.5418077087402344, "mean_token_accuracy": 0.5770933660492301, "num_tokens": 334289.0, "step": 400 }, { "entropy": 2.0537689401954413, "epoch": 0.40816326530612246, "grad_norm": 0.5750653743743896, "learning_rate": 6.434926073521803e-05, "loss": 1.5946527099609376, "mean_token_accuracy": 0.5710043688677251, "num_tokens": 415705.0, "step": 500 }, { "epoch": 0.40816326530612246, "eval_entropy": 1.5940086383085985, "eval_loss": 1.6339383125305176, "eval_mean_token_accuracy": 0.6421380157654102, "eval_num_tokens": 415705.0, "eval_runtime": 3.1459, "eval_samples_per_second": 31.787, "eval_steps_per_second": 4.132, "step": 500 }, { "entropy": 2.0754134288430213, "epoch": 0.4897959183673469, "grad_norm": 1.2727973461151123, "learning_rate": 5.173073585798768e-05, "loss": 1.6228317260742187, "mean_token_accuracy": 0.564216209501028, "num_tokens": 494295.0, "step": 600 }, { "entropy": 2.012790724672377, "epoch": 0.5714285714285714, "grad_norm": 0.2896394729614258, "learning_rate": 3.899900307419982e-05, "loss": 1.5738545227050782, "mean_token_accuracy": 0.5796110359393061, "num_tokens": 577751.0, "step": 700 }, { "entropy": 1.9897139368206262, "epoch": 0.6530612244897959, "grad_norm": 0.5676203370094299, "learning_rate": 2.6986848512742967e-05, "loss": 1.5871757507324218, "mean_token_accuracy": 0.5866536642797291, "num_tokens": 658206.0, "step": 800 }, { "entropy": 2.0891294856369496, "epoch": 0.7346938775510204, "grad_norm": 0.4007723033428192, "learning_rate": 1.647999049387474e-05, "loss": 1.6784550476074218, "mean_token_accuracy": 0.5773500371165574, "num_tokens": 738593.0, "step": 900 }, { "entropy": 2.0181680861487985, "epoch": 0.8163265306122449, "grad_norm": 0.4596865475177765, "learning_rate": 8.165685478668238e-06, "loss": 1.6400236511230468, "mean_token_accuracy": 0.5852108645252884, "num_tokens": 817014.0, "step": 1000 }, { "epoch": 0.8163265306122449, "eval_entropy": 1.5638046906544611, "eval_loss": 1.6097618341445923, "eval_mean_token_accuracy": 0.6478444796342117, "eval_num_tokens": 817014.0, "eval_runtime": 3.1122, "eval_samples_per_second": 32.132, "eval_steps_per_second": 4.177, "step": 1000 }, { "entropy": 2.016655530370772, "epoch": 0.8979591836734694, "grad_norm": 0.6038398742675781, "learning_rate": 2.587774435638679e-06, "loss": 1.6814262390136718, "mean_token_accuracy": 0.579078944325447, "num_tokens": 896645.0, "step": 1100 }, { "entropy": 2.061556413136423, "epoch": 0.9795918367346939, "grad_norm": 0.6863688826560974, "learning_rate": 1.1111005402286711e-07, "loss": 1.64010009765625, "mean_token_accuracy": 0.5714908703416586, "num_tokens": 973715.0, "step": 1200 } ], "logging_steps": 100, "max_steps": 1225, "num_input_tokens_seen": 0, "num_train_epochs": 1, "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": 3639615811848192.0, "train_batch_size": 2, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:2c48a59f1b6172333299bf9d976db4ea345469bea5f84dce7b12648da77e8b7bsize 5713123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209---base_model: Qwen/Qwen2.5-0.5Blibrary_name: peftpipeline_tag: text-generationtags:- base_model:adapter:Qwen/Qwen2.5-0.5B- lora- sft- transformers- trl---
# Model Card for Model ID
<!-- Provide a quick summary of what the model is/does. -->
## Model Details
### Model Description
<!-- Provide a longer summary of what this model is. -->
- **Developed by:** [More Information Needed]- **Funded by [optional]:** [More Information Needed]- **Shared by [optional]:** [More Information Needed]- **Model type:** [More Information Needed]- **Language(s) (NLP):** [More Information Needed]- **License:** [More Information Needed]- **Finetuned from model [optional]:** [More Information Needed]
### Model Sources [optional]
<!-- Provide the basic links for the model. -->
- **Repository:** [More Information Needed]- **Paper [optional]:** [More Information Needed]- **Demo [optional]:** [More Information Needed]
## Uses
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
### Direct Use
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
[More Information Needed]
### Downstream Use [optional]
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
[More Information Needed]
### Out-of-Scope Use
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
[More Information Needed]
## Bias, Risks, and Limitations
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
[More Information Needed]
### Recommendations
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
## How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
## Training Details
### Training Data
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
[More Information Needed]
### Training Procedure
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
#### Preprocessing [optional]
[More Information Needed]
#### Training Hyperparameters
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
#### Speeds, Sizes, Times [optional]
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
[More Information Needed]
## Evaluation
<!-- This section describes the evaluation protocols and provides the results. -->
### Testing Data, Factors & Metrics
#### Testing Data
<!-- This should link to a Dataset Card if possible. -->
[More Information Needed]
#### Factors
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
[More Information Needed]
#### Metrics
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
[More Information Needed]
### Results
[More Information Needed]
#### Summary
## Model Examination [optional]
<!-- Relevant interpretability work for the model goes here -->
[More Information Needed]
## Environmental Impact
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** [More Information Needed]- **Hours used:** [More Information Needed]- **Cloud Provider:** [More Information Needed]- **Compute Region:** [More Information Needed]- **Carbon Emitted:** [More Information Needed]
## Technical Specifications [optional]
### Model Architecture and Objective
[More Information Needed]
### Compute Infrastructure
[More Information Needed]
#### Hardware
[More Information Needed]
#### Software
[More Information Needed]
## Citation [optional]
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
**BibTeX:**
[More Information Needed]
**APA:**
[More Information Needed]
## Glossary [optional]
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
[More Information Needed]
## More Information [optional]
[More Information Needed]
## Model Card Authors [optional]
[More Information Needed]
## Model Card Contact
[More Information Needed]### Framework versions
- PEFT 0.20.01234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ "alora_invocation_tokens": null, "alpha_pattern": {}, "arrow_config": null, "auto_mapping": null, "base_model_name_or_path": "Qwen/Qwen2.5-0.5B", "bias": "none", "corda_config": null, "ensure_weight_tying": false, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 16, "lora_bias": false, "lora_dropout": 0.1, "lora_ga_config": null, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "monteclora_config": null, "peft_type": "LORA", "peft_version": "0.20.0", "qalora_group_size": 16, "r": 32, "rank_pattern": {}, "revision": null, "target_modules": [ "k_proj", "o_proj", "v_proj", "q_proj" ], "target_parameters": null, "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_bdlora": null, "use_dora": false, "use_qalora": false, "use_rslora": false, "velora_config": null}123version https://git-lfs.github.com/spec/v1oid sha256:ddf710f2cb42698fea4e6dfbfab21351c4aea371da9fb26c471a5ec5624c0ebbsize 17326944123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0]['role'] == 'system' %} {{- messages[0]['content'] }} {%- else %} {{- 'You are a helpful assistant.' }} {%- endif %} {{- "\n\n# 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' }} {%- else %} {{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }} {%- endif %}{%- endif %}{%- for message in messages %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {{- '<|im_start|>' + message.role }} {%- if message.content %} {{- '\n' + message.content }} {%- endif %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '\n<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {{- tool_call.arguments | tojson }} {{- '}\n</tool_call>' }} {%- endfor %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- message.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' }}{%- endif %}123version https://git-lfs.github.com/spec/v1oid sha256:601b85811caf8ad949e8f844ea2eb0835e48d13607193a4c9f3c35d2d2394478size 34767243123version https://git-lfs.github.com/spec/v1oid sha256:8f6154582f8933a0b99736b957656d2c6210a8de7ff92d66679e1499c31afddcsize 14645123version https://git-lfs.github.com/spec/v1oid sha256:50e006ce9d93bdd733a0bdcdcfcec0cdee2fd560c662b7cc71b7db166a44be4esize 1383123version https://git-lfs.github.com/spec/v1oid sha256:ad073517456be823929739a4f354f066f992cd20dd6f6567c2248c1355d982e8size 1465123version https://git-lfs.github.com/spec/v1oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8size 11421892123456789101112131415161718192021222324252627282930{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|endoftext|>", "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": false, "local_files_only": false, "model_max_length": 131072, "pad_token": "<|endoftext|>", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187{ "best_global_step": null, "best_metric": null, "best_model_checkpoint": null, "epoch": 1.0, "eval_steps": 500, "global_step": 1225, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "entropy": 2.65348322480917, "epoch": 0.08163265306122448, "grad_norm": 0.3858589231967926, "learning_rate": 9.839710975789937e-05, "loss": 1.8520664978027344, "mean_token_accuracy": 0.4766763444710523, "num_tokens": 73931.0, "step": 100 }, { "entropy": 2.221065641641617, "epoch": 0.16326530612244897, "grad_norm": 0.4490025043487549, "learning_rate": 9.362871573431047e-05, "loss": 1.7005967712402343, "mean_token_accuracy": 0.5576045931689442, "num_tokens": 156572.0, "step": 200 }, { "entropy": 2.128404154591262, "epoch": 0.24489795918367346, "grad_norm": 0.568897008895874, "learning_rate": 8.600655546367782e-05, "loss": 1.6693995666503907, "mean_token_accuracy": 0.5640898733213544, "num_tokens": 244559.0, "step": 300 }, { "entropy": 2.096652089692652, "epoch": 0.32653061224489793, "grad_norm": 0.6031016111373901, "learning_rate": 7.602919653718044e-05, "loss": 1.5418077087402344, "mean_token_accuracy": 0.5770933660492301, "num_tokens": 334289.0, "step": 400 }, { "entropy": 2.0537689401954413, "epoch": 0.40816326530612246, "grad_norm": 0.5750653743743896, "learning_rate": 6.434926073521803e-05, "loss": 1.5946527099609376, "mean_token_accuracy": 0.5710043688677251, "num_tokens": 415705.0, "step": 500 }, { "epoch": 0.40816326530612246, "eval_entropy": 1.5940086383085985, "eval_loss": 1.6339383125305176, "eval_mean_token_accuracy": 0.6421380157654102, "eval_num_tokens": 415705.0, "eval_runtime": 3.1459, "eval_samples_per_second": 31.787, "eval_steps_per_second": 4.132, "step": 500 }, { "entropy": 2.0754134288430213, "epoch": 0.4897959183673469, "grad_norm": 1.2727973461151123, "learning_rate": 5.173073585798768e-05, "loss": 1.6228317260742187, "mean_token_accuracy": 0.564216209501028, "num_tokens": 494295.0, "step": 600 }, { "entropy": 2.012790724672377, "epoch": 0.5714285714285714, "grad_norm": 0.2896394729614258, "learning_rate": 3.899900307419982e-05, "loss": 1.5738545227050782, "mean_token_accuracy": 0.5796110359393061, "num_tokens": 577751.0, "step": 700 }, { "entropy": 1.9897139368206262, "epoch": 0.6530612244897959, "grad_norm": 0.5676203370094299, "learning_rate": 2.6986848512742967e-05, "loss": 1.5871757507324218, "mean_token_accuracy": 0.5866536642797291, "num_tokens": 658206.0, "step": 800 }, { "entropy": 2.0891294856369496, "epoch": 0.7346938775510204, "grad_norm": 0.4007723033428192, "learning_rate": 1.647999049387474e-05, "loss": 1.6784550476074218, "mean_token_accuracy": 0.5773500371165574, "num_tokens": 738593.0, "step": 900 }, { "entropy": 2.0181680861487985, "epoch": 0.8163265306122449, "grad_norm": 0.4596865475177765, "learning_rate": 8.165685478668238e-06, "loss": 1.6400236511230468, "mean_token_accuracy": 0.5852108645252884, "num_tokens": 817014.0, "step": 1000 }, { "epoch": 0.8163265306122449, "eval_entropy": 1.5638046906544611, "eval_loss": 1.6097618341445923, "eval_mean_token_accuracy": 0.6478444796342117, "eval_num_tokens": 817014.0, "eval_runtime": 3.1122, "eval_samples_per_second": 32.132, "eval_steps_per_second": 4.177, "step": 1000 }, { "entropy": 2.016655530370772, "epoch": 0.8979591836734694, "grad_norm": 0.6038398742675781, "learning_rate": 2.587774435638679e-06, "loss": 1.6814262390136718, "mean_token_accuracy": 0.579078944325447, "num_tokens": 896645.0, "step": 1100 }, { "entropy": 2.061556413136423, "epoch": 0.9795918367346939, "grad_norm": 0.6863688826560974, "learning_rate": 1.1111005402286711e-07, "loss": 1.64010009765625, "mean_token_accuracy": 0.5714908703416586, "num_tokens": 973715.0, "step": 1200 }, { "epoch": 1.0, "eval_entropy": 1.5626688462037306, "eval_loss": 1.609505295753479, "eval_mean_token_accuracy": 0.6479680950825031, "eval_num_tokens": 992320.0, "eval_runtime": 3.1267, "eval_samples_per_second": 31.982, "eval_steps_per_second": 4.158, "step": 1225 } ], "logging_steps": 100, "max_steps": 1225, "num_input_tokens_seen": 0, "num_train_epochs": 1, "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": 3710062484688384.0, "train_batch_size": 2, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:2c48a59f1b6172333299bf9d976db4ea345469bea5f84dce7b12648da77e8b7bsize 5713123version https://git-lfs.github.com/spec/v1oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8size 11421892123456789101112131415161718192021222324252627282930{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|endoftext|>", "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": false, "local_files_only": false, "model_max_length": 131072, "pad_token": "<|endoftext|>", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}.gitattributes+3
README.mdAdded+62
adapter_config.jsonAdded+47
adapter_model.safetensorsAdded+3
chat_template.jinjaAdded+54
checkpoint-1200/README.mdAdded+209
checkpoint-1200/adapter_config.jsonAdded+47
checkpoint-1200/adapter_model.safetensorsAdded+3
checkpoint-1200/chat_template.jinjaAdded+54
checkpoint-1200/optimizer.ptAdded+3
checkpoint-1200/rng_state.pthAdded+3
checkpoint-1200/scaler.ptAdded+3
checkpoint-1200/scheduler.ptAdded+3
checkpoint-1200/tokenizer.jsonAdded+3
checkpoint-1200/tokenizer_config.jsonAdded+30
checkpoint-1200/trainer_state.jsonAdded+176
checkpoint-1200/training_args.binAdded+3
checkpoint-1225/README.mdAdded+209
checkpoint-1225/adapter_config.jsonAdded+47
checkpoint-1225/adapter_model.safetensorsAdded+3
checkpoint-1225/chat_template.jinjaAdded+54
checkpoint-1225/optimizer.ptAdded+3
checkpoint-1225/rng_state.pthAdded+3
checkpoint-1225/scaler.ptAdded+3
checkpoint-1225/scheduler.ptAdded+3
checkpoint-1225/tokenizer.jsonAdded+3
checkpoint-1225/tokenizer_config.jsonAdded+30
checkpoint-1225/trainer_state.jsonAdded+187
checkpoint-1225/training_args.binAdded+3
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+30