Model Intelligence Sheet
richarderkhov/lianghsun_-_llama-3.2-taiwan-3b-gguf overview
[👋歡迎加入 Discord 討論🎉] !image/png 圖像生成來自 OpenArt:An anime-style 🦙 standing proudly atop the summit of Taiwan’s Yushan (Jade Mountain), gazing forward. 採用 meta-llama/Llama-3.2-3B 為基礎模型(foundation model),使用大量中華民國台灣的繁體中文語料和多國語料進行模型持績預訓練(continual pretraining, CPT),旨在訓練出具有中華民國台灣知識及風格的小語言模型(small langugae model, SLM)。 Model Change Log | Update Date | Model Version | Key Changes | |--------------|-----------------------|-------------------------------------| | 2025-01-01 | v2024.12.28 | This version is trained on a larger corpus of Traditional Chinese texts and multilingual data. | | 2024-11-15 | v2024.11.15 | The model continues training on multilingual and Traditional Chinese corpora. |
Downloads
89
Likes
0
Pipeline
—
Library
—
Visibility
Public
Access
Open
Repository Files & Downloads
22 files detected
Direct downloads for all repository files
| File | Type | Quantization | Size | Link |
|---|---|---|---|---|
| Llama-3.2-Taiwan-3B.IQ3_M.gguf | GGUF | IQ3_M | 1.65 GB | Download |
| Llama-3.2-Taiwan-3B.IQ3_S.gguf | GGUF | IQ3_S | 1.59 GB | Download |
| Llama-3.2-Taiwan-3B.IQ3_XS.gguf | GGUF | IQ3_XS | 1.53 GB | Download |
| Llama-3.2-Taiwan-3B.IQ4_NL.gguf | GGUF | IQ4_NL | 2.00 GB | Download |
| Llama-3.2-Taiwan-3B.IQ4_XS.gguf | GGUF | IQ4_XS | 1.91 GB | Download |
| Llama-3.2-Taiwan-3B.Q2_K.gguf | GGUF | Q2_K | 1.39 GB | Download |
| Llama-3.2-Taiwan-3B.Q3_K.gguf | GGUF | Q3_K | 1.73 GB | Download |
| Llama-3.2-Taiwan-3B.Q3_K_L.gguf | GGUF | Q3_K_L | 1.85 GB | Download |
| Llama-3.2-Taiwan-3B.Q3_K_M.gguf | GGUF | Q3_K_M | 1.73 GB | Download |
| Llama-3.2-Taiwan-3B.Q3_K_S.gguf | GGUF | Q3_K_S | 1.59 GB | Download |
| Llama-3.2-Taiwan-3B.Q4_0.gguf | GGUF | — | 1.99 GB | Download |
| Llama-3.2-Taiwan-3B.Q4_1.gguf | GGUF | — | 2.18 GB | Download |
| Llama-3.2-Taiwan-3B.Q4_K.gguf | GGUF | Q4_K | 2.09 GB | Download |
| Llama-3.2-Taiwan-3B.Q4_K_M.gguf | GGUF | Q4_K_M | 2.09 GB | Download |
| Llama-3.2-Taiwan-3B.Q4_K_S.gguf | GGUF | Q4_K_S | 2.00 GB | Download |
| Llama-3.2-Taiwan-3B.Q5_0.gguf | GGUF | — | 2.37 GB | Download |
| Llama-3.2-Taiwan-3B.Q5_1.gguf | GGUF | — | 2.55 GB | Download |
| Llama-3.2-Taiwan-3B.Q5_K.gguf | GGUF | Q5_K | 2.41 GB | Download |
| Llama-3.2-Taiwan-3B.Q5_K_M.gguf | GGUF | Q5_K_M | 2.41 GB | Download |
| Llama-3.2-Taiwan-3B.Q5_K_S.gguf | GGUF | Q5_K_S | 2.37 GB | Download |
| Llama-3.2-Taiwan-3B.Q6_K.gguf | GGUF | Q6_K | 2.76 GB | Download |
| Llama-3.2-Taiwan-3B.Q8_0.gguf | GGUF | — | 3.58 GB | Download |
Model Details Live
Metadata Inspector
Normalized metadata (stored in metadata_json)
{
"metadata": {},
"card_data": {
"frontmatter": {},
"hero_image_url": "https://cdn-uploads.huggingface.co/production/uploads/618dc56cbc345ca7bf95f3cd/v_cfMxTtVE6_eh0rzcy5L.png",
"summary": "[👋歡迎加入 Discord 討論🎉] !image/png *圖像生成來自 OpenArt:An anime-style 🦙 standing proudly atop the summit of Taiwan’s Yushan (Jade Mountain), gazing forward.* 採用 meta-llama/Llama-3.2-3B 為基礎模型(foundation model),使用大量中華民國台灣的繁體中文語料和多國語料進行模型持績預訓練(continual pretraining, CPT),旨在訓練出具有中華民國台灣知識及風格的小語言模型(small langugae model, SLM)。 Model Change Log | Update Date | Model Version | Key Changes | |--------------|-----------------------|-------------------------------------| | 2025-01-01 | v2024.12.28 | This version is trained on a larger corpus of Traditional Chinese texts and multilingual data. | | 2024-11-15 | v2024.11.15 | The model continues training on multilingual and Traditional Chinese corpora. |",
"quick_links": [],
"benchmark_table_html": "",
"readme_markdown": "Quantization made by Richard Erkhov.\n\n[Github](https://github.com/RichardErkhov)\n\n[Discord](https://discord.gg/pvy7H8DZMG)\n\n[Request more models](https://github.com/RichardErkhov/quant_request)\n\n\nLlama-3.2-Taiwan-3B - GGUF\n- Model creator: https://huggingface.co/lianghsun/\n- Original model: https://huggingface.co/lianghsun/Llama-3.2-Taiwan-3B/\n\n\n| Name | Quant method | Size |\n| ---- | ---- | ---- |\n| [Llama-3.2-Taiwan-3B.Q2_K.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q2_K.gguf) | Q2_K | 1.39GB |\n| [Llama-3.2-Taiwan-3B.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.IQ3_XS.gguf) | IQ3_XS | 1.53GB |\n| [Llama-3.2-Taiwan-3B.IQ3_S.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.IQ3_S.gguf) | IQ3_S | 1.59GB |\n| [Llama-3.2-Taiwan-3B.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q3_K_S.gguf) | Q3_K_S | 1.59GB |\n| [Llama-3.2-Taiwan-3B.IQ3_M.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.IQ3_M.gguf) | IQ3_M | 1.65GB |\n| [Llama-3.2-Taiwan-3B.Q3_K.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q3_K.gguf) | Q3_K | 1.73GB |\n| [Llama-3.2-Taiwan-3B.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q3_K_M.gguf) | Q3_K_M | 1.73GB |\n| [Llama-3.2-Taiwan-3B.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q3_K_L.gguf) | Q3_K_L | 1.85GB |\n| [Llama-3.2-Taiwan-3B.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.IQ4_XS.gguf) | IQ4_XS | 1.91GB |\n| [Llama-3.2-Taiwan-3B.Q4_0.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q4_0.gguf) | Q4_0 | 1.99GB |\n| [Llama-3.2-Taiwan-3B.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.IQ4_NL.gguf) | IQ4_NL | 2.0GB |\n| [Llama-3.2-Taiwan-3B.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q4_K_S.gguf) | Q4_K_S | 2.0GB |\n| [Llama-3.2-Taiwan-3B.Q4_K.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q4_K.gguf) | Q4_K | 2.09GB |\n| [Llama-3.2-Taiwan-3B.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q4_K_M.gguf) | Q4_K_M | 2.09GB |\n| [Llama-3.2-Taiwan-3B.Q4_1.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q4_1.gguf) | Q4_1 | 2.18GB |\n| [Llama-3.2-Taiwan-3B.Q5_0.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q5_0.gguf) | Q5_0 | 2.37GB |\n| [Llama-3.2-Taiwan-3B.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q5_K_S.gguf) | Q5_K_S | 2.37GB |\n| [Llama-3.2-Taiwan-3B.Q5_K.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q5_K.gguf) | Q5_K | 2.41GB |\n| [Llama-3.2-Taiwan-3B.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q5_K_M.gguf) | Q5_K_M | 2.41GB |\n| [Llama-3.2-Taiwan-3B.Q5_1.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q5_1.gguf) | Q5_1 | 2.55GB |\n| [Llama-3.2-Taiwan-3B.Q6_K.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q6_K.gguf) | Q6_K | 2.76GB |\n| [Llama-3.2-Taiwan-3B.Q8_0.gguf](https://huggingface.co/RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf/blob/main/Llama-3.2-Taiwan-3B.Q8_0.gguf) | Q8_0 | 3.58GB |\n\n\n\n\nOriginal model description:\n---\nbase_model: meta-llama/Llama-3.2-3B\nlibrary_name: transformers\ndatasets:\n- lianghsun/tw-novel-1.1B\n- lianghsun/tw-finance-159M\n- lianghsun/tw-legal-news-24M\n- lianghsun/tw-gov-news-90M\n- lianghsun/tw-gov-556k\n- lianghsun/tw-news-551M\n- lianghsun/tw-health-43M\n- lianghsun/tw-science-24M\n- lianghsun/tw-book-43M\n- lianghsun/tw-society-88M\n- lianghsun/tw-law-article-evolution\n- lianghsun/tw-processed-judgments\n- lianghsun/tw-legal-methodology\n- lianghsun/tw-legal-qa\n- lianghsun/tw-judgment-gist\n- lianghsun/reasoning-base-20k\n- lianghsun/wikipedia-zh-filtered\n- AWeirdDev/zh-tw-pts-articles-sm\n- bhxiang/c4_calibrate_mini\n- benchang1110/pretrainedtw\n- benchang1110/sciencetw\n- intfloat/multilingual_cc_news\nlanguage:\n- zh\n- en\nlicense: llama3.2\ntags:\n- ROC\n- Taiwan\n- zh-tw\n- llama-factory\nnew_version: lianghsun/Llama-3.2-Taiwan-3B-Instruct\npipeline_tag: text-generation\nwidget:\n- text: 中華民國憲法第一條\n---\n\n# Model Card for lianghsun/Llama-3.2-Taiwan-3B\n\n<!-- Provide a quick summary of what the model is/does. -->\n<a href=\"https://discord.gg/fj6WbHMvfs\" target=\"_blank\">[👋歡迎加入 Discord 討論🎉]</a>\n\n\n*圖像生成來自 [OpenArt](https://openart.ai/home):An anime-style 🦙 standing proudly atop the summit of Taiwan’s [Yushan (Jade Mountain)](https://zh.wikipedia.org/wiki/%E7%8E%89%E5%B1%B1), gazing forward.*\n\n採用 [meta-llama/Llama-3.2-3B](https://huggingface.co/meta-llama/Llama-3.2-3B) 為[基礎模型(foundation model)](https://en.wikipedia.org/wiki/Foundation_model),使用大量[中華民國台灣](https://zh.wikipedia.org/zh-tw/%E8%87%BA%E7%81%A3)的繁體中文語料和多國語料進行模型[持績預訓練(continual pretraining, CPT)](https://docs.unsloth.ai/basics/continued-pretraining),旨在訓練出具有中華民國台灣知識及風格的[小語言模型(small langugae model, SLM)](https://www.ibm.com/think/topics/small-language-models)。\n\n<details>\n <summary><b>Model Change Log</b></summary>\n \n | Update Date | Model Version | Key Changes |\n |--------------|-----------------------|-------------------------------------|\n | 2025-01-01 | v2024.12.28 | This version is trained on a larger corpus of Traditional Chinese texts and multilingual data. |\n | 2024-11-15 | v2024.11.15 | The model continues training on multilingual and Traditional Chinese corpora. |\n \n</details>\n\n## Model Details\n\n本模型基於 `meta-llama/Llama-3.2-3B` 持續預訓練,整合了大量繁體中文語料和多國語系語料。繁體中文語料主要來自中華民國政府官方與其他可信賴的繁體中文來源,確保語料純正,避免模型生成時出現繁簡中文用語混雜的情況。同時,此舉也使模型能更準確地貼近中華民國台灣社會的語言使用習慣。\n\n採用小語言模型(相較於 7B+)的設計目標之一是降低硬體資源需求,即便在較少 GPU 硬體資源的環境中,也能讓使用者能更輕鬆地進行[指令微調(instruction fine-tuning)](https://www.ibm.com/topics/instruction-tuning)或部署推論端點(inference endpoint)。\n\n> 需要大量繁體中文語料和高算力的部分,這個基礎模型已經處理好了,各位訓練家只要專注在微調的部分 💪。\n\n*👋 如果你有更多公開資料想讓模型進行預訓練或者你對指令微調有什麼想法,也請歡迎來信討論。請不吝嗇給予 ❤️ 以支持此開源專案。以下提供本基礎模型的持續預訓練細節,協助各位減少探索所需的時間。*\n\n### Model Description\n\n<!-- Provide a longer summary of what this model is. -->\n- **Developed by:** [Huang Liang Hsun](https://www.linkedin.com/in/lianghsunhuang)\n- **Model type:** LlamaForCausalLM\n- **Language(s) (NLP):** zh-tw\n- **License:** [llama3.2](https://huggingface.co/meta-llama/Llama-3.2-1B/blob/main/LICENSE.txt)\n- **Continual pre-trained from model:** [meta-llama/Llama-3.2-3B](https://huggingface.co/meta-llama/Llama-3.2-3B)\n\n### Model Sources\n\n<!-- Provide the basic links for the model. -->\n- **Repository:** [lianghsun/Llama-3.2-Taiwan-3B](https://huggingface.co/lianghsun/Llama-3.2-Taiwan-3B)\n- **Demo**:\n```markdown\n# v2024.11.15\n\nprompt: 台灣是\ntext: 個有地震風險的地方,地震的地層不斷變化\n\nprompt: 中華民國總統\ntext: 當選人賴清德今日抵台揭露住所。\n\nprompt: 學校營養午餐\ntext: 之食物營養成分及食材數量評鑑手冊\n```\n\n## Uses\n\n<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->\n\n### Direct Use\n\n<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->\n本基礎模型透過大量繁體中文和多國語料進行持續預訓練,在不進行指令微調的前題下,你可以佈署此基礎模型觀察其對繁中語料的接龍程度,從中得知是否具備一定的繁中能力。\n\n```markdown\n# v2024.11.15\nprompt: 刑法第一條\ntext: 規定之立法目的,以維護社會生活的和諧之\n```\n\n### Downstream Use\n\n<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->\n本基礎模型透過大量繁體中文和多國語料進行持續預訓練,經檢查模型的輸出已經具有繁中用語能力,使用者可以以此基礎模型進行指令微調成具有指令回調的模型,以下是我們使用大量繁體中文指令集進行微調後的模型結果:\n```markdown\n# lianghsun/Llama-3.2-Taiwan-3B-Instruct (not released yet)\nuser: 請介紹台灣\nassistant: 台灣,位於亞洲東部,地處太平洋與菲律賓海之間,面積約36,000平方公里,人口約2,300萬,是民主自由的國家,經濟實力強勁,擁有世界第10大經濟體。台灣以美食、文化、自然美景著稱,還有豐富的歷史與傳統,吸引全球遊客。台灣語為官方語言,但中文也廣為使用,英語也常用於國際交流。台灣政治多元,執政黨為民進黨,台灣是全球科技產業的重鎮,擁有先進的製造業與服務業。台灣氣候溫暖潮濕,四季分明,夏季炎熱,冬季涼爽,雨季則在5月至10月。台灣的美食以小吃為主,如滷肉飯、珍珠\n```\n\n### Out-of-Scope Use\n\n<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->\n我們用來訓練此基礎模型的繁體中文資料集涵蓋許多不同年代,基礎模型如果在未微調的前題下,進一步詢問有關具有時效性的問題可能會得到非預期的結果,比如\n```markdown\n# v2024.11.15\nprompt: 民法第184條\ntext: 第1項立法目的及易淹水事件開放安全窗 # 錯誤\n```\n\n## Bias, Risks, and Limitations\n\n<!-- This section is meant to convey both technical and sociotechnical limitations. -->\n雖然此模型已經透過大量繁體中文的薰陶,並且資料集中含有大量中華民國台灣政府的公開資訊,但仍可能出現時空背景錯誤、使用非台灣本地用語或其他誤植回覆的可能性(我們持績在補充更多的繁中語料)。使用者在參考這些資料時,應謹慎檢查生成的內容,並避免將模型輸出視為正確回覆。建議可以再透過 *持績預訓練* 或 *指令微調* 進一步降低前述的問題。\n\n### Recommendations\n\n<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->\n\nUsers (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.\n\n## How to Get Started with the Model\n\n<!-- Use the code below to get started with the model. -->\n\n要使用 [vLLM Docker image](https://docs.vllm.ai/en/latest/serving/deploying_with_docker.html) 來啟動此模型,您可以按照以下操作:\n```bash\ndocker run --runtime nvidia --gpus all \\\n -v ~/.cache/huggingface:/root/.cache/huggingface \\\n --env \"HUGGING_FACE_HUB_TOKEN=<secret>\" \\\n -p 8000:8000 \\\n --ipc=host \\\n vllm/vllm-openai:latest \\\n --model lianghsun/Llama-3.2-Taiwan-3B\n```\n\n請注意,如果想要使用不同版本的 checkpoint,請加上 `--revision <tag_name>` \n```bash\ndocker run --runtime nvidia --gpus all \\\n -v ~/.cache/huggingface:/root/.cache/huggingface \\\n --env \"HUGGING_FACE_HUB_TOKEN=<secret>\" \\\n -p 8000:8000 \\\n --ipc=host \\\n vllm/vllm-openai:latest \\\n --model lianghsun/Llama-3.2-Taiwan-3B --revision <tag_name>\n``` \n\n## Training Details\n\n### Training Data\n\n<!-- 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. -->\n<details>\n <summary><b>繁體中文語料資料集</b></summary>\n \n - [lianghsun/tw-novel-1.1B](https://huggingface.co/datasets/lianghsun/tw-novel-1.1B)\n - [lianghsun/tw-finance-159M](https://huggingface.co/datasets/lianghsun/tw-finance-159M)\n - [lianghsun/tw-legal-news-24M](https://huggingface.co/datasets/lianghsun/tw-legal-news-24M)\n - [lianghsun/tw-gov-news-90M](https://huggingface.co/datasets/lianghsun/tw-gov-news-90M)\n - [lianghsun/tw-news-408M](https://huggingface.co/datasets/lianghsun/tw-news-408M)\n - [lianghsun/tw-health-36M](https://huggingface.co/datasets/lianghsun/tw-health-36M)\n - [lianghsun/tw-law-article-evolution](https://huggingface.co/datasets/lianghsun/tw-law-article-evolution)\n - [lianghsun/tw-processed-judgments](https://huggingface.co/datasets/lianghsun/tw-processed-judgments)\n - [lianghsun/tw-legal-methodology](https://huggingface.co/datasets/lianghsun/tw-legal-methodology)\n - [lianghsun/tw-legal-qa](https://huggingface.co/datasets/lianghsun/tw-legal-qa)\n - [lianghsun/tw-judgment-gist](https://huggingface.co/datasets/lianghsun/tw-judgment-gist)\n - [lianghsun/reasoning-base-20k](https://huggingface.co/datasets/lianghsun/reasoning-base-20k)\n - [AWeirdDev/zh-tw-pts-articles-sm](https://huggingface.co/datasets/AWeirdDev/zh-tw-pts-articles-sm)\n - [bhxiang/c4_calibrate_mini](https://huggingface.co/datasets/bhxiang/c4_calibrate_mini)\n - [benchang1110/pretrainedtw](https://huggingface.co/datasets/benchang1110/pretrainedtw)\n - [benchang1110/sciencetw](https://huggingface.co/datasets/benchang1110/sciencetw)\n \n</details>\n\n<details>\n <summary><b>多國語系語料資料集</b></summary>\n \n - [intfloat/multilingual_cc_news](https://huggingface.co/datasets/intfloat/multilingual_cc_news)\n \n</details>\n\n\n### Training Procedure\n\n<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->\n\n#### Preprocessing\n\n1. **語料格式化:** 繁體中文資料集面臨一些格式化的問題,句子中如果有中英文混雜,或者更通用的情況是全型和半型的文字及標點符號混合時,如果資料來源處未加注意,格式往往會是全型半型符號各種交錯使用、中文句子中間用半型逗號相接、中英文直接連在一起,這些源頭可能源自於從小使用 Microsoft Word 的習慣,因為 Word 會在「視覺上」幫中英文之間加上空格,導致繁體中文地區的撰寫者習慣會忽略在適當的位置加上空格及全型半型文字交錯時的正確格式,我們在此稱之為「不工整格式」。上述問題會導致採用如此的資料集的語言模型學到不工整的輸出,比如:\n\n```markdown\n# 不工整文本\n- 你好嗎Jack這是我們的10c.c\n- 他說:\"Hello, how are you?\"\n\n```\n\n為了解決這個問題,我們撰寫一個負責格式化文本的管道(pipeline)處理全型半型混合語料。\n\n```markdown\n# 格式化後的文本\n- 你好嗎 Jack 這是我們的 10 c.c\n- 他說:\"Hello, how are you?\"\n\n```\n\n2. **截斷長度:** 在選擇資料時,我們直接去除大於訓練模型的截斷長度(cutoff length)的文本,讓每一筆訓練的文本是完整的句子。基於上述觀察,我們將這個模型的截斷長度設置為 `4096`,並取總 token 數量小於 `4096` 文本。請注意這裡我們是以 `llama-3.2-*B` 的切詞器(tokenizer)去計算總 token 數量。\n\n#### Training Hyperparameters\n\n- **learning_rate:** 5e-6\n- **min_learning_rate:** 5e-7\n- **train_batch_size:** 8\n- **eval_batch_size:** 4\n- **seed:** 42\n- **distributed_type:** single-node\n- **num_devices:** 4\n- **gradient_accumulation_steps:** 50\n- **total_train_batch_size:** 1,600 (train_batch_size * gradient_accumulation_steps * num_devices)\n- **optimizer:** adamw_torch_fused\n- **lr_scheduler_type:** cosine\n- **lr_scheduler_warmup_ratio:** 0.01\n- **num_epochs:** 10\n- **grad_norm:** 0.14920360027631302\n- **global_step:** 2,770\n\n#### Speeds, Sizes, Times\n\n<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->\n- **Duration**: 8d 1h 46m 24s\n- **Train runtime**: 697,584.9221\n- **Train samples per second**: 6.376\n- **Train steps per second**: 0.004\n- **Total training FLOPs**: 18,625,327,792,128,000\n- **Train loss**: 1.7512\n\n## Environmental Impact\n\n<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->\n\n- **Hardware Type:** 🚀\n- **Hours used:** ⏳⏳⌛\n- **Cloud Provider:** [鴻鵠國際股份有限公司](https://www.honghutech.com/)\n- **Compute Region:** 🇹🇼\n- **Carbon Emitted:** ♻️\n\n## Technical Specifications [optional]\n\n### Model Architecture and Objective\n\n[More Information Needed]\n\n### Compute Infrastructure\n\n[More Information Needed]\n\n#### Hardware\n\n[More Information Needed]\n\n#### Software\n\n[More Information Needed]\n\n## Citation\n\n<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->\n```\n@misc{\n lianghsun2024llama32taiwan3b,\n author = {Huang, Liang Hsun},\n title = {Llama-3.2-Taiwan-3B},\n year = {2024},\n publisher = {Hugging Face},\n howpublished = {\\url{https://huggingface.co/lianghsun/Llama-3.2-Taiwan-3B}},\n note = {Accessed: 2024-11-25}\n}\n```\n\n## Glossary\n\n<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->\nN/A\n\n## More Information\n\n### Acknowledge\n\n在此致謝[鴻鵠國際股份有限公司](https://www.honghutech.com/)蔡長明先生無償地贊助算力,以及曾經幫忙過:廖振翔、chweng、Ben、kevin、Maxxchu、Lam 和陳林彥…等朋友們,才能讓這個模型得以訓練完成,提供算力者乃人生父母。\n\n### Usage\n如果你基於此基礎模型進行微調,希望能不吝嗇在 **模型卡片(model card)** 裡標註 **基礎模型** 為:\n```\nbase_model: lianghsun/Llama-3.2-Taiwan-3B\n```\n\n標註和 ❤️ 是給予我們最大的鼓勵,謝謝。😀\n\n## Model Card Authors\n\n[Huang Liang Hsun](https://www.linkedin.com/in/lianghsunhuang)\n\n## Model Card Contact\n\n[Huang Liang Hsun](https://www.linkedin.com/in/lianghsunhuang)\n\n### Framework versions\n\n- Transformers 4.45.2\n- Pytorch 2.4.1+cu121\n- Datasets 2.21.0\n- Tokenizers 0.20.0\n\n\n",
"related_quantizations": []
},
"tags": [
"gguf",
"endpoints_compatible",
"region:us",
"conversational"
],
"likes": 0,
"downloads": 89,
"gated": false,
"private": false,
"last_modified": "2025-03-29T10:30:56.000Z",
"created_at": "2025-03-29T09:23:18.000Z",
"pipeline_tag": "",
"library_name": ""
}
Source payload excerpt (from Hugging Face API)
{
"_id": "67e7bc06b13aed34b4c456c2",
"id": "RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf",
"modelId": "RichardErkhov/lianghsun_-_Llama-3.2-Taiwan-3B-gguf",
"sha": "0fadfdc836cc1fb46cd98ba49ae946e5c9082001",
"createdAt": "2025-03-29T09:23:18.000Z",
"lastModified": "2025-03-29T10:30:56.000Z",
"author": "RichardErkhov",
"downloads": 89,
"likes": 0,
"gated": false,
"private": false,
"pipeline_tag": "",
"library_name": "",
"siblings_count": 24
}