初始化项目,由ModelHub XC社区提供模型

Model: karthik-2905/AL1-model-B
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-09-03 14:24:17 +08:00
commit 1cf36b6e22
144 changed files with 10291 additions and 0 deletions

View File

@@ -0,0 +1,209 @@
---
base_model: Qwen/Qwen3-0.6B
library_name: peft
pipeline_tag: text-generation
tags:
- base_model:adapter:Qwen/Qwen3-0.6B
- 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.19.1

View File

@@ -0,0 +1,48 @@
{
"alora_invocation_tokens": null,
"alpha_pattern": {},
"arrow_config": null,
"auto_mapping": null,
"base_model_name_or_path": "Qwen/Qwen3-0.6B",
"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": 32,
"lora_bias": false,
"lora_dropout": 0.05,
"lora_ga_config": null,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": null,
"peft_type": "LORA",
"peft_version": "0.19.1",
"qalora_group_size": 16,
"r": 16,
"rank_pattern": {},
"revision": null,
"target_modules": [
"o_proj",
"down_proj",
"v_proj",
"gate_proj",
"q_proj",
"k_proj",
"up_proj"
],
"target_parameters": null,
"task_type": "CAUSAL_LM",
"trainable_token_indices": null,
"use_bdlora": null,
"use_dora": false,
"use_qalora": false,
"use_rslora": false
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:47c379f9a9f9eda2d1d4c3194060ab471ea74f9548edd049a500127bb93f7bc6
size 40422168

View File

@@ -0,0 +1,89 @@
{%- 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 %}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:566faa9c7d439e880d09e4019aa0f41acc4ecdc2cdb368a5f1b465ab84aa66e8
size 81075515

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8afaaaf68ec369c33e52739656f45b852ca8ff769f8b378c0e061a55f3a6dd8d
size 14645

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ba53d412fdaef3ea9e83daaefc9058ccddd307d410e5fc8901e13fadf373c25b
size 1465

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506
size 11422650

View File

@@ -0,0 +1,30 @@
{
"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": false,
"local_files_only": false,
"model_max_length": 131072,
"pad_token": "<|endoftext|>",
"split_special_tokens": false,
"tokenizer_class": "Qwen2Tokenizer",
"unk_token": null
}

View File

@@ -0,0 +1,179 @@
{
"best_global_step": null,
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 1.0,
"eval_steps": 10,
"global_step": 45,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"entropy": 0.5051268041133881,
"epoch": 0.1111111111111111,
"grad_norm": 1.7442580461502075,
"learning_rate": 0.0002984015052112665,
"loss": 1.0908665657043457,
"mean_token_accuracy": 0.8142835974693299,
"num_tokens": 59002.0,
"step": 5
},
{
"entropy": 0.7225139260292053,
"epoch": 0.2222222222222222,
"grad_norm": 0.7206196784973145,
"learning_rate": 0.0002808074112215711,
"loss": 0.6919548034667968,
"mean_token_accuracy": 0.8514000058174134,
"num_tokens": 120432.0,
"step": 10
},
{
"epoch": 0.2222222222222222,
"eval_entropy": 0.9578993916511536,
"eval_loss": 0.9403628706932068,
"eval_mean_token_accuracy": 0.8023552894592285,
"eval_num_tokens": 120432.0,
"eval_runtime": 1.6133,
"eval_samples_per_second": 45.869,
"eval_steps_per_second": 1.86,
"step": 10
},
{
"entropy": 0.8998202800750732,
"epoch": 0.3333333333333333,
"grad_norm": 0.6158784031867981,
"learning_rate": 0.00024595095323383365,
"loss": 0.8696078300476074,
"mean_token_accuracy": 0.8144582986831665,
"num_tokens": 179678.0,
"step": 15
},
{
"entropy": 0.7956753373146057,
"epoch": 0.4444444444444444,
"grad_norm": 0.638497531414032,
"learning_rate": 0.00019843206071571692,
"loss": 0.8670864105224609,
"mean_token_accuracy": 0.8208897352218628,
"num_tokens": 240600.0,
"step": 20
},
{
"epoch": 0.4444444444444444,
"eval_entropy": 0.8266730904579163,
"eval_loss": 0.9242745637893677,
"eval_mean_token_accuracy": 0.803473949432373,
"eval_num_tokens": 240600.0,
"eval_runtime": 1.6168,
"eval_samples_per_second": 45.77,
"eval_steps_per_second": 1.856,
"step": 20
},
{
"entropy": 0.7963908970355987,
"epoch": 0.5555555555555556,
"grad_norm": 0.42324671149253845,
"learning_rate": 0.00014452169654135115,
"loss": 0.8695890426635742,
"mean_token_accuracy": 0.8264959454536438,
"num_tokens": 301638.0,
"step": 25
},
{
"entropy": 0.9203879475593567,
"epoch": 0.6666666666666666,
"grad_norm": 0.6087479591369629,
"learning_rate": 9.133429192647661e-05,
"loss": 0.9359363555908203,
"mean_token_accuracy": 0.8043835282325744,
"num_tokens": 359243.0,
"step": 30
},
{
"epoch": 0.6666666666666666,
"eval_entropy": 0.861892561117808,
"eval_loss": 0.918761670589447,
"eval_mean_token_accuracy": 0.8063527544339498,
"eval_num_tokens": 359243.0,
"eval_runtime": 1.6289,
"eval_samples_per_second": 45.43,
"eval_steps_per_second": 1.842,
"step": 30
},
{
"entropy": 0.6894854545593262,
"epoch": 0.7777777777777778,
"grad_norm": 0.48022472858428955,
"learning_rate": 4.58888707169049e-05,
"loss": 0.6996908187866211,
"mean_token_accuracy": 0.849899160861969,
"num_tokens": 417098.0,
"step": 35
},
{
"entropy": 0.8869106888771057,
"epoch": 0.8888888888888888,
"grad_norm": 0.5962172746658325,
"learning_rate": 1.4182764376028006e-05,
"loss": 0.9062419891357422,
"mean_token_accuracy": 0.8095215201377869,
"num_tokens": 480008.0,
"step": 40
},
{
"epoch": 0.8888888888888888,
"eval_entropy": 0.8640047709147135,
"eval_loss": 0.9166465997695923,
"eval_mean_token_accuracy": 0.8074178695678711,
"eval_num_tokens": 480008.0,
"eval_runtime": 1.6231,
"eval_samples_per_second": 45.593,
"eval_steps_per_second": 1.848,
"step": 40
},
{
"entropy": 0.8551887631416321,
"epoch": 1.0,
"grad_norm": 0.8982498049736023,
"learning_rate": 4.0015745046725336e-07,
"loss": 0.8875165939331054,
"mean_token_accuracy": 0.8184282779693604,
"num_tokens": 530794.0,
"step": 45
},
{
"epoch": 1.0,
"eval_entropy": 0.8636427720387777,
"eval_loss": 0.9162904620170593,
"eval_mean_token_accuracy": 0.8047811388969421,
"eval_num_tokens": 530794.0,
"eval_runtime": 1.6244,
"eval_samples_per_second": 45.555,
"eval_steps_per_second": 1.847,
"step": 45
}
],
"logging_steps": 5,
"max_steps": 45,
"num_input_tokens_seen": 0,
"num_train_epochs": 1,
"save_steps": 500,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": true
},
"attributes": {}
}
},
"total_flos": 1952299008000000.0,
"train_batch_size": 32,
"trial_name": null,
"trial_params": null
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:924d7e63473ec418c24607d3b642e15bbb9db040609b99cad5c74bcf3d799620
size 5777