Run this model with HF Jobs
Run LLM-CLEM/Melta on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/LLM-CLEM/Melta. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/LLM-CLEM/Melta on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/LLM-CLEM/Melta. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/LLM-CLEM/Melta with Transformers and bitsandbytes. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use LLM-CLEM/Melta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLM-CLEM/Melta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLM-CLEM/Melta") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("LLM-CLEM/Melta") model = AutoModelForCausalLM.from_pretrained("LLM-CLEM/Melta", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LLM-CLEM/Melta with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM-CLEM/Melta" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LLM-CLEM/Melta", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/LLM-CLEM/Melta
- SGLang
How to use LLM-CLEM/Melta 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 "LLM-CLEM/Melta" \ --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": "LLM-CLEM/Melta", "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 "LLM-CLEM/Melta" \ --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": "LLM-CLEM/Melta", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use LLM-CLEM/Melta with Docker Model Runner:
docker model run hf.co/LLM-CLEM/Melta
Update README.md
Browse files5 unmodified lines67895 unmodified lineslanguage:- frpipeline_tag: text-generation---5 unmodified lines678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364655 unmodified lineslanguage:- frpipeline_tag: text-generation---# 🚀 Melta-82M : Le LLM Fonctionnel et Efficace## 💡 Présentation Générale| Caractéristique | Détail || :--- | :--- || **Nom du Modèle** | **Melta-82M** (Basé sur le projet Melta-revive) || **Créateur** | Clemylia / LES-IA-ETOILES || **Architecture** | **Transformer Llama** (Initialisé *from scratch*) || **Taille (Paramètres)** | **82 millions** || **Objectif** | Servir de modèle de fondation (**LLM Fonctionnel à Faible Paramètre**) pour le *Fine-Tuning* d'assistants spécialisés (comme Malya 🎶 ou Charlotte 💖). || **Langue** | Français |Melta-82M représente la première tentative réussie de Clemylia d'entraîner une architecture Llama *from scratch*. Il est conçu pour prouver que l'efficacité de l'apprentissage des Transformers peut être atteinte avec un nombre de paramètres relativement faible, défiant la nécessité de modèles de plusieurs milliards.## ⚙️ Détails Techniques de l'ArchitectureMelta-82M est basé sur une configuration Llama optimisée pour la vitesse d'entraînement :| Hyperparamètre | Valeur | Rôle dans l'Efficacité || :--- | :--- | :--- || **`hidden_size`** | 512 | Définit la dimension cachée du modèle. Gardé faible pour minimiser le coût de calcul. || **`num_hidden_layers`** | 12 | Nombre de blocs Transformer. Un bon équilibre pour capturer la complexité du langage sans alourdir le modèle. || **`num_attention_heads`**| 12 | Nombre de têtes d'attention. Permet au modèle d'analyser différentes facettes de la séquence simultanément. || **`vocab_size`** | \~32 000 | Taille du vocabulaire (ajustée après l'ajout du jeton `[PAD]`). Utilise un *tokenizer* sub-mot standard. || **`max_position_embeddings`**| 600 | Longueur maximale des séquences que le modèle peut traiter. |## 🧪 Statut et Utilisation Actuelle### 🚧 Statut de l'EntraînementMelta-82M est actuellement dans une **phase de pré-apprentissage précoce** :* **Données d'Entraînement :** Entraîné initialement sur seulement 650 lignes de paires Questions/Réponses (`Clemylia/Melta-revive`).* **Résultats :** Le modèle a réussi à apprendre la **structure de dialogue** (`Question: / Réponse:`) et les **éléments d'identité** (`Melta27`, `Clem27`). Cependant, il souffre encore d'une forte **incohérence sémantique** et génère des **néologismes** et des caractères aléatoires, car les 82 millions de paramètres n'ont pas encore été stabilisés par un volume suffisant de données.### 🎯 Prochaine Étape : Le Fine-TuningCe modèle est prêt pour :1. **L'augmentation massive du *dataset* :** Il nécessite un entraînement sur des millions de *tokens* pour atteindre une cohérence factuelle et sémantique.2. **L'Affinement d'Instruction (Fine-Tuning) :** Une fois la cohérence atteinte, il pourra être affiné (comme vous l'avez fait pour Charlotte) pour devenir des assistants spécialisés de **Classe 5**.## ⬇️ Comment Utiliser Melta-82MVous pouvez charger ce modèle directement via la bibliothèque **Hugging Face Transformers** pour l'inférence :```pythonfrom transformers import AutoTokenizer, LlamaForCausalLM# Le modèle Llama 82M est chargé avec ses poids entraînésmodel = LlamaForCausalLM.from_pretrained("Clemylia/Melta")tokenizer = AutoTokenizer.from_pretrained("Clemylia/Melta")```**⚠️ Note :** En raison de son statut d'entraînement précoce, les utilisateurs sont invités à effectuer des Fine-Tuning supplémentaires avant toute utilisation en production.
README.md+57-1