Downloads · 30 days
24
9% of all-time downloads
aiplanet/LuxLlama-16bit
LuxLlama-16bit is a text generation model from aiplanet. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
LuxLlama is a fine-tuned iteration of the Meta-Llama-3.1-8B-Instruct model, specifically adapted to enhance capabilities in Luxembourgish language understanding and generation, alongside general and mathematical reaso…
Downloads · 30 days
24
9% of all-time downloads
All-time downloads
276
Public
Parameters
8B
60.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin30 GB · 50%
How the weights are stored.
F327B · 87%
From the Hugging Face model README
LuxLlama is a fine-tuned iteration of the Meta-Llama-3.1-8B-Instruct model, specifically adapted to enhance capabilities in Luxembourgish language understanding and generation, alongside general and mathematical reasoning. The model was trained on a diverse dataset combining reasoning benchmarks and cleaned Luxembourgish text, utilizing Parameter-Efficient Fine-Tuning (PEFT) with LoRA and optimized using the Liger kernel for efficiency. Its performance is evaluated using the custom LUXELLA benchmark, demonstrating strong capabilities in areas like translation and comprehension, while highlighting areas for improvement in nuanced vocabulary and grammar.The fine-tuning process utilized the computational resources provided by Meluxina, a high-performance computing (HPC) platform operated by LuxProvide.
unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bitThe goal of LuxLlama is to create a language model proficient in both complex reasoning and the nuances of the Luxembourgish language. By leveraging a powerful base model (Llama 3.1 8B Instruct) and fine-tuning it on a curated mix of reasoning and language-specific datasets, LuxLlama aims to serve as a capable tool for tasks requiring Luxembourgish language skills and logical deduction. This model card details its architecture, training process, data, and evaluation results on the LUXELLA benchmark.
Meluxina is Luxembourg's national supercomputer, launched in June 2021 by LuxProvide. It is built on the EVIDEN BullSequana XH2000 platform and provides:
Meluxina was ranked 36th globally and recognized as the greenest supercomputer in the EU within the Top500 ranking. Named after Luxembourg's legend of the mermaid Melusina, it symbolizes digital innovation and employs water-cooling technology for energy efficiency.
The development of LuxLlama builds upon existing work in:
The fine-tuning dataset was compiled from the following sources:
KingNish/reasoning-base-20kSkunkworksAI/reasoning-0.01AI-MO/NuminaMath-CoTsaillab/alpaca-luxembourgish-cleanedunsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit loaded with 4-bit quantization (load_in_4bit=True).trl.SFTTrainer.get_peft_model).
r: 256lora_alpha: 256lora_dropout: 0.0target_modules: ["q_proj", "k_proj", "v_proj", "o_proj", "gate_proj", "up_proj", "down_proj"]SFTConfig):
max_seq_length: 128000packing: Falseper_device_train_batch_size: 4gradient_accumulation_steps: 8 (Effective Batch Size: 32)warmup_ratio: 0.02num_train_epochs: 1learning_rate: 5e-5fp16: Truebf16: True (Mixed Precision Training)logging_steps: 10optim: "adamw_8bit"weight_decay: 0.01lr_scheduler_type: "cosine_with_restarts"seed: 1729output_dir: "lora_outputs_run5"save_strategy: "steps"save_steps: 1000use_liger=True) for increased throughput and reduced memory usage via optimized Triton kernels for common LLM operations.LuxLlama Performance on LUXELLA:
Scores by Category:
| Category | Score |
|---|---|
| translation_to_english | 83.8 |
| reading_comprehension | 82.8 |
| verb_conjugation | 82.2 |
| multiple_choice | 81.6 |
| translation_from_english | 81.4 |
| translation | 80.0 |
| listening_comprehension_simulation | 79.6 |
| conversation | 75.8 |
| word_order | 75.8 |
| cultural_knowledge | 75.2 |
| writing_prompt | 74.8 |
| grammar | 68.8 |
| idioms_and_expressions | 67.4 |
| sentence_completion | 62.2 |
| spelling_and_pronunciation | 60.8 |
| vocabulary | 60.0 |
| Scores by Difficulty: | |
| Difficulty | Score |
| :----------- | :---- |
| beginner | 78.6 |
| intermediate | 73.8 |
| advanced | 73.6 |
| native | 71.4 |
| Comparative Performance: | |
| Model | Overall Score (LUXELLA) |
| :------------------------ | :---------------------- |
| LuxLlama (Ours) | 74.6 |
| gemma2-9b-it | 61.4 |
| llama-3.1-8b-instant | 49.2 |
| mixtral-8x7b-32768 | 48.8 |
| Summary: LuxLlama demonstrates strong performance on the LUXELLA benchmark, outperforming other tested models significantly. It excels in translation, comprehension, and verb conjugation. Areas like vocabulary, spelling, and idioms show relatively lower scores, indicating room for improvement in capturing finer linguistic nuances. The model handles beginner-level tasks very well, with a gradual decrease in performance as difficulty increases, validating the benchmark's sensitivity. Sample high-performing questions show correct handling of cultural knowledge, spelling, and advanced verb conjugation, while low-performing samples highlight challenges with specific grammar rules (Konjunktiv II usage), subtle distinctions in vocabulary (Niess vs Kusinn), and standard word order conventions. |
(This section should be updated after further analysis and usage.)
This work leverages computational resources and support from Meluxina by LuxProvide.
<img src="https://www.luxprovide.lu/wp-content/themes/luxprovide2023/public/images/logo/logo_notagline_color_blue.4b07cb.svg" alt="LuxProvide Logo" width="50%"> <img src="https://docs.lxp.lu/FAQ/images/MeluXina_Logo.png" alt="Meluxina Logo" width="50%">