Downloads · 30 days
119
4% of all-time downloads
duyntnet/c4ai-command-r-08-2024-imatrix-GGUF
c4ai-command-r-08-2024-imatrix-GGUF is a text generation model from duyntnet. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
Quantizations of https://huggingface.co/CohereForAI/c4ai-command-r-08-2024
Downloads · 30 days
119
4% of all-time downloads
All-time downloads
2.7K
Public
Repo size
457 GB
Likes
1
Public
Click a slice to open those files.
.gguf457 GB · 100%
From the Hugging Face model README
Quantizations of https://huggingface.co/CohereForAI/c4ai-command-r-08-2024
C4AI Command R 08-2024 is a research release of a 35 billion parameter highly performant generative model. Command R 08-2024 is a large language model with open weights optimized for a variety of use cases including reasoning, summarization, and question answering. Command R 08-2024 has the capability for multilingual generation, trained on 23 languages and evaluated in 10 languages and highly performant RAG capabilities.
Developed by: Cohere and Cohere For AI
Try C4AI Command R
If you want to try Command R before downloading the weights, the model is hosted in a hugging face space here.
Usage
Please use transformers version 4.39.1 or higher
# pip install 'transformers>=4.39.1'
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "CohereForAI/c4ai-command-r-08-2024"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
# Format message with the command-r-08-2024 chat template
messages = [{"role": "user", "content": "Hello, how are you?"}]
input_ids = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
## <BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>Hello, how are you?<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>
gen_tokens = model.generate(
input_ids,
max_new_tokens=100,
do_sample=True,
temperature=0.3,
)
gen_text = tokenizer.decode(gen_tokens[0])
print(gen_text)