
ABOUT
COOKtheSTORY
Creating recipes that take less time in the kitchen, so you can spend more time enjoying life. Come see how much easier it all can be!
Based on your request, it seems you are referring to the series of large language models developed by MBZUAI-Paris, which are optimized for Moroccan Darija and general text generation.
Here is an example of how to generate text using the model via Python, as described in their Hugging Face documentation : atlaschat.rar
A mobile app for generating texts and essays. GmodStore - Atlas Chat : A chatbox addon for Garry's Mod. Based on your request, it seems you are
# Assuming you have the transformers library installed from transformers import AutoModelForCausalLM, AutoTokenizer import torch # Load the model and tokenizer model_id = "MBZUAI-Paris/Atlas-Chat-27B" tokenizer = AutoTokenizer.from_pretrained(model_id) model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto") # Prepare your prompt (Example in Darija/Arabic) prompt = "شنو هي العاصمة ديال المغرب؟" inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt") # Generate text outputs = model.generate(input_ids=inputs.to(model.device), max_new_tokens=512) print(tokenizer.decode(outputs[0])) Use code with caution. Copied to clipboard Alternative "Atlas" Chatbot Tools # Assuming you have the transformers library installed
To give you the most relevant generation code, are you looking to use the for NLP tasks, or a different "Atlas" app/tool ? QuantFactory/Atlas-Chat-2B-GGUF - Hugging Face