Text Generation
Transformers
Safetensors
GGUF
Portuguese
English
mistral
text-generation-inference
brazil
brasil
portuguese
conversational
Eval Results (legacy)
Instructions to use botbotrobotics/CabraMistral7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use botbotrobotics/CabraMistral7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="botbotrobotics/CabraMistral7b") 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("botbotrobotics/CabraMistral7b") model = AutoModelForCausalLM.from_pretrained("botbotrobotics/CabraMistral7b", 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 botbotrobotics/CabraMistral7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "botbotrobotics/CabraMistral7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "botbotrobotics/CabraMistral7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/botbotrobotics/CabraMistral7b
- SGLang
How to use botbotrobotics/CabraMistral7b 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 "botbotrobotics/CabraMistral7b" \ --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": "botbotrobotics/CabraMistral7b", "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 "botbotrobotics/CabraMistral7b" \ --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": "botbotrobotics/CabraMistral7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use botbotrobotics/CabraMistral7b with Docker Model Runner:
docker model run hf.co/botbotrobotics/CabraMistral7b
Commit History
-
Fixing some errors of the leaderboard evaluation results in the ModelCard yaml
Verified signatureThe name of a few benchmarks are incorrect on the model metadata. This commit fixes some minor errors of the [last PR](2) on the ModelCard YAML metadata.cce9d91 -
Adding the Open Portuguese LLM Leaderboard Evaluation Results (#2)
Verified signature- Adding the Open Portuguese LLM Leaderboard Evaluation Results (9543be0d07f485a919de0daee32ee6f0abd5eb6a) Co-authored-by: Open PT LLM Leaderboard PR Bot <leaderboard-pt-pr-bot@users.noreply.huggingface.co>dcb9a53
-
Update README.md
Verified signature00ca6e1
-
Update README.md
Verified signaturea477325
-
Update README.md
Verified signaturea545a4b -
Update README.md
Verified signatured474da6
-
Delete mistral-br-pt-q8_0.gguf with huggingface_hub
Verified signature5455181 -
Delete mistral-br-pt-q6_k.gguf with huggingface_hub
Verified signature5880bc4 -
Delete mistral-br-pt-q5_k_m.gguf with huggingface_hub
Verified signature9e75bcb -
Delete mistral-br-pt-q5_0.gguf with huggingface_hub
Verified signature29fa390 -
Delete mistral-br-pt-q4_k_m.gguf with huggingface_hub
Verified signature7eec2d3 -
Delete mistral-br-pt-q4_0.gguf with huggingface_hub
Verified signaturea2d3f90 -
Delete mistral-br-pt-q3_k_m.gguf with huggingface_hub
Verified signature3aa463e -
Delete mistral-br-pt-q2_k.gguf with huggingface_hub
Verified signatureaec9274 -
Update README.md
Verified signatured04c376 -
Create README.md
Verified signatured48f2bf
-
Upload folder using huggingface_hub
Verified signaturef1b31c5 -
initial commit
Verified signature7204126