Command R7B Arabic: auf Arabisch optimiertes Modell
Cohere veröffentlicht Command R7B Arabic (c4ai-command-r7b-12-2024), ein offenes Modell mit 8 Milliarden Parametern und 128.000 Tokens Kontext, optimiert für Arabisch (MSA) und Englisch.
Cohere is thrilled to announce the release of Command R7B Arabic (c4ai-command-r7b-12-2024). This is an open weights release of an advanced, 8-billion parameter custom model optimized for the Arabic language (MSA dialect), in addition to English. As with Cohere's other command models, this one comes with context length of 128,000 tokens; it excels at a number of critical enterprise tasks -- instruction following, length control, retrieval-augmented generation (RAG), minimizing code-switching -- and it demonstrates excellent general purpose knowledge and understanding of the Arabic language and culture.
Try Command R7B Arabic
If you want to try Command R7B Arabic, it's very easy: you can use it through the Cohere playground or in our dedicated Hugging Face Space.
Alternatively, you can use the model in your own code. To do that, first install the transformers library from its source repository:
pip install 'git+https://github.com/huggingface/transformers.git'
Then, use this Python snippet to run a simple text-generation task with the model:
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "CohereForAI/c4ai-command-r7b-12-2024"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id) …