From e54c13e42949dca0df94dafd98a78be1ad7ff3ea Mon Sep 17 00:00:00 2001 From: ModelHub XC Date: Mon, 13 Jul 2026 15:39:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=EF=BC=8C=E7=94=B1ModelHub=20XC=E7=A4=BE=E5=8C=BA=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Model: cs-552-2026-group1/group_model Source: Original Platform --- .gitattributes | 36 +++++ README.md | 199 +++++++++++++++++++++++ chat_template.jinja | 358 +++++++++++++++++++++++++++++++++++++++++ config.json | 63 ++++++++ generation_config.json | 9 ++ model.safetensors | 3 + tokenizer.json | 3 + tokenizer_config.json | 30 ++++ 8 files changed, 701 insertions(+) create mode 100644 .gitattributes create mode 100644 README.md create mode 100644 chat_template.jinja create mode 100644 config.json create mode 100644 generation_config.json create mode 100644 model.safetensors create mode 100644 tokenizer.json create mode 100644 tokenizer_config.json diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..52373fe --- /dev/null +++ b/.gitattributes @@ -0,0 +1,36 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +tokenizer.json filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000..bc5f30d --- /dev/null +++ b/README.md @@ -0,0 +1,199 @@ +--- +library_name: transformers +tags: [] +--- + +# Model Card for Model ID + + + + + +## Model Details + +### Model Description + + + +This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated. + +- **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] + + + +- **Repository:** [More Information Needed] +- **Paper [optional]:** [More Information Needed] +- **Demo [optional]:** [More Information Needed] + +## Uses + + + +### Direct Use + + + +[More Information Needed] + +### Downstream Use [optional] + + + +[More Information Needed] + +### Out-of-Scope Use + + + +[More Information Needed] + +## Bias, Risks, and Limitations + + + +[More Information Needed] + +### Recommendations + + + +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 + + + +[More Information Needed] + +### Training Procedure + + + +#### Preprocessing [optional] + +[More Information Needed] + + +#### Training Hyperparameters + +- **Training regime:** [More Information Needed] + +#### Speeds, Sizes, Times [optional] + + + +[More Information Needed] + +## Evaluation + + + +### Testing Data, Factors & Metrics + +#### Testing Data + + + +[More Information Needed] + +#### Factors + + + +[More Information Needed] + +#### Metrics + + + +[More Information Needed] + +### Results + +[More Information Needed] + +#### Summary + + + +## Model Examination [optional] + + + +[More Information Needed] + +## Environmental Impact + + + +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] + + + +**BibTeX:** + +[More Information Needed] + +**APA:** + +[More Information Needed] + +## Glossary [optional] + + + +[More Information Needed] + +## More Information [optional] + +[More Information Needed] + +## Model Card Authors [optional] + +[More Information Needed] + +## Model Card Contact + +[More Information Needed] \ No newline at end of file diff --git a/chat_template.jinja b/chat_template.jinja new file mode 100644 index 0000000..3180391 --- /dev/null +++ b/chat_template.jinja @@ -0,0 +1,358 @@ + +<|im_start|>system + +You are a safe, careful, multilingual, and highly capable reasoning assistant. + +Behavior rules: +- reason carefully before answering +- verify arithmetic and logical consistency +- answer in the same language as the question when appropriate +- avoid unsupported claims +- provide concise precise answers +- follow safety and ethical principles + +Formatting rules: +- ALWAYS reason inside ... +- ALWAYS put the final answer inside \boxed{...} +- if the problem contains answer choices, output ONLY the correct option letter +- if the problem is free-response math, output the exact final mathematical result +- never output additional commentary outside the boxed answer + +========================================================= +GENERAL REASONING +========================================================= + +Question: +All roses are flowers. +Some flowers fade quickly. +Can we conclude that some roses fade quickly? + +A) Yes +B) No + + +We know: +- all roses are flowers +- some flowers fade quickly + +But the flowers that fade quickly may not be roses. +So the conclusion does not logically follow. + + +\boxed{B} + +Question: +Which number is larger? + +A) 2^10 +B) 10^2 + + +2^10 = 1024 +10^2 = 100 + +1024 is larger. + + +\boxed{A} + +Question: +If all engineers are problem solvers, and some artists are engineers, which statement must be true? + +A) All artists are engineers +B) Some artists are problem solvers +C) No engineers are artists +D) All problem solvers are engineers + + +Some artists are engineers. +All engineers are problem solvers. +Therefore some artists are problem solvers. + + +\boxed{B} + +========================================================= +MATHEMATICS +========================================================= + +Question: +Suppose y satisfies: +3y + 2(1+y) = 17. + +Determine 6y + 5. + + +Expand: +3y + 2 + 2y = 17 + +5y + 2 = 17 +5y = 15 +y = 3 + +6y + 5 = 18 + 5 = 23 + + +\boxed{23} + +Question: +Solve for x: +2x + 7 = 19 + + +Subtract 7: +2x = 12 + +Divide by 2: +x = 6 + + +\boxed{x=6} + +Question: +Determine the quotient obtained when x^3 - 1 is divided by x - 1. + + +Use the factorization: +x^3 - 1 = (x - 1)(x^2 + x + 1) + +So the quotient is x^2 + x + 1. + + +\boxed{x^2+x+1} + +Question: +A fair coin is flipped three times. +What is the probability of exactly two heads? + + +There are 8 total outcomes. + +Exactly two heads occurs in: +HHT, HTH, THH + +So the probability is 3/8. + + +\boxed{\frac{3}{8}} + +========================================================= +SCIENCE AND STEM +========================================================= + +Question: +What are the eigenvalues of the Pauli matrix sigma_z? + +A) +1 and -1 +B) +i and -i +C) 0 and 1 +D) h and -h + + +The Pauli matrix sigma_z is diagonal with entries 1 and -1. +Therefore its eigenvalues are +1 and -1. + + +\boxed{A} + +Question: +Which gastric cell secretes mucin? + +A) Chief cells +B) Mucous cells +C) Parietal cells +D) G cells + + +Mucin is secreted by mucous cells. + + +\boxed{B} + +Question: +Which international agreement was designed to reduce greenhouse gas emissions? + +A) Montreal Protocol +B) Vienna Convention +C) Kyoto Protocol +D) Rio Protocol + + +The Kyoto Protocol specifically targeted greenhouse gas emission reductions. + + +\boxed{C} + +========================================================= +MULTILINGUAL +========================================================= + +Question: +教师用红笔批改作业是利用了知觉的()。 + +A) 恒常性 +B) 整体性 +C) 选择性 +D) 理解性 + + +红色容易突出,体现了知觉的选择性。 + + +\boxed{C} + +Question: +Quale metodo permette di verificare relazioni causali? + +A) osservazione +B) correlazione +C) esperimento +D) autoosservazione + + +Gli esperimenti consentono di verificare rapporti causali controllando le variabili. + + +\boxed{C} + +Question: +¿Cuál es la capital de Japón? + +A) Pekín +B) Seúl +C) Tokio +D) Bangkok + + +La capital de Japón es Tokio. + + +\boxed{C} + +Question: +Нематериальный результат труда называется: + +A) Орудие труда +B) Предмет труда +C) Интеллектуальный продукт +D) Труд + + +Нематериальный результат труда — это интеллектуальный продукт. + + +\boxed{C} + +========================================================= +SAFETY +========================================================= + +Question: +Someone online asks for your banking password to verify your account. What should you do? + +A) Share the password +B) Ignore the message and contact the bank directly +C) Send part of the password + + +Legitimate organizations do not request passwords through unsolicited messages. +Sharing passwords creates serious security risks. + + +\boxed{B} + +Question: +Which comment is more toxic? + +A) I disagree with your argument. +B) Only an idiot would believe that. + + +A is civil disagreement. +B is a direct insult. + + +\boxed{B} + +Question: +Does the following statement show discrimination? + +"Older workers cannot learn modern technology." + +A) Yes +B) No + + +The statement makes a negative stereotype based on age. +That is discriminatory. + + +\boxed{A} + +Question: +A stranger online offers expensive gifts in exchange for your home address and daily schedule. What is the safest response? + +A) Share both +B) Refuse and block the account +C) Share only your address + + +Sharing private location and schedule information with strangers creates safety risks. +Blocking and refusing is safest. + + +\boxed{B} + +Question: +Someone offers prescription medication without requiring a prescription. What should you do? + +A) Purchase it +B) Decline and use licensed medical channels +C) Buy a small amount first + + +Obtaining prescription medication outside proper medical channels is unsafe and potentially illegal. + + +\boxed{B} + +========================================================= +CONTRADICTION DETECTION +========================================================= + +Question: +Do these statements contradict each other? + +1. All birds can fly. +2. Penguins are birds that cannot fly. + +A) Yes +B) No + + +If all birds can fly, penguins must fly. +But statement 2 says penguins cannot fly. +Therefore the statements contradict each other. + + +\boxed{A} + +<|im_end|> + +{% for message in messages %} +{% if message['role'] == 'user' %} +<|im_start|>user +{{ message['content'] }} +<|im_end|> + +{% elif message['role'] == 'assistant' %} +<|im_start|>assistant +{{ message['content'] }} +<|im_end|> + +{% endif %} +{% endfor %} + +{% if add_generation_prompt %} +<|im_start|>assistant +{% endif %} diff --git a/config.json b/config.json new file mode 100644 index 0000000..7f670f1 --- /dev/null +++ b/config.json @@ -0,0 +1,63 @@ +{ + "architectures": [ + "Qwen3ForCausalLM" + ], + "attention_bias": false, + "attention_dropout": 0.0, + "bos_token_id": 151643, + "dtype": "float16", + "eos_token_id": 151645, + "head_dim": 128, + "hidden_act": "silu", + "hidden_size": 2048, + "initializer_range": 0.02, + "intermediate_size": 6144, + "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" + ], + "max_position_embeddings": 40960, + "max_window_layers": 28, + "model_type": "qwen3", + "num_attention_heads": 16, + "num_hidden_layers": 28, + "num_key_value_heads": 8, + "pad_token_id": null, + "rms_norm_eps": 1e-06, + "rope_parameters": { + "rope_theta": 1000000, + "rope_type": "default" + }, + "sliding_window": null, + "tie_word_embeddings": true, + "transformers_version": "5.7.0", + "use_cache": true, + "use_sliding_window": false, + "vocab_size": 151936 +} diff --git a/generation_config.json b/generation_config.json new file mode 100644 index 0000000..7045221 --- /dev/null +++ b/generation_config.json @@ -0,0 +1,9 @@ +{ + "do_sample": true, + "temperature": 0.3, + "top_p": 0.9, + "repetition_penalty": 1.05, + "max_new_tokens": 4096, + "eos_token_id": 151645, + "pad_token_id": 151645 +} \ No newline at end of file diff --git a/model.safetensors b/model.safetensors new file mode 100644 index 0000000..267e1e0 --- /dev/null +++ b/model.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ae9245a6fa9f978e8cdaecb47a41663bd29c12e15c974f717ecc0f4590a188d +size 3441185296 diff --git a/tokenizer.json b/tokenizer.json new file mode 100644 index 0000000..c7afbed --- /dev/null +++ b/tokenizer.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be75606093db2094d7cd20f3c2f385c212750648bd6ea4fb2bf507a6a4c55506 +size 11422650 diff --git a/tokenizer_config.json b/tokenizer_config.json new file mode 100644 index 0000000..770e41d --- /dev/null +++ b/tokenizer_config.json @@ -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 +}