Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
conversational
text-generation-inference
Instructions to use arcee-ai/raspberry-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arcee-ai/raspberry-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="arcee-ai/raspberry-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("arcee-ai/raspberry-3B") model = AutoModelForCausalLM.from_pretrained("arcee-ai/raspberry-3B") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Local Apps Settings
- vLLM
How to use arcee-ai/raspberry-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "arcee-ai/raspberry-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "arcee-ai/raspberry-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/arcee-ai/raspberry-3B
- SGLang
How to use arcee-ai/raspberry-3B 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 "arcee-ai/raspberry-3B" \ --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": "arcee-ai/raspberry-3B", "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 "arcee-ai/raspberry-3B" \ --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": "arcee-ai/raspberry-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use arcee-ai/raspberry-3B with Docker Model Runner:
docker model run hf.co/arcee-ai/raspberry-3B
Adding Evaluation Results
#2
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
---
|
| 2 |
-
library_name: transformers
|
| 3 |
license: other
|
| 4 |
-
|
| 5 |
-
license_link: https://huggingface.co/Qwen/Qwen2.5-3B-Instruct/blob/main/LICENSE
|
| 6 |
-
base_model: Qwen/Qwen2.5-3B
|
| 7 |
tags:
|
| 8 |
- generated_from_trainer
|
|
|
|
|
|
|
|
|
|
| 9 |
model-index:
|
| 10 |
- name: outputs/gelato-3b
|
| 11 |
results: []
|
|
@@ -34,3 +34,17 @@ GGUFs: https://huggingface.co/mradermacher/raspberry-3B-GGUF
|
|
| 34 |
|MuSR (0-shot) |40.61|
|
| 35 |
|MMLU-PRO (5-shot) |28.49|
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
license: other
|
| 3 |
+
library_name: transformers
|
|
|
|
|
|
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
+
base_model: Qwen/Qwen2.5-3B
|
| 7 |
+
license_name: qwen-research
|
| 8 |
+
license_link: https://huggingface.co/Qwen/Qwen2.5-3B-Instruct/blob/main/LICENSE
|
| 9 |
model-index:
|
| 10 |
- name: outputs/gelato-3b
|
| 11 |
results: []
|
|
|
|
| 34 |
|MuSR (0-shot) |40.61|
|
| 35 |
|MMLU-PRO (5-shot) |28.49|
|
| 36 |
|
| 37 |
+
|
| 38 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)
|
| 39 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_arcee-ai__raspberry-3B)
|
| 40 |
+
|
| 41 |
+
| Metric |Value|
|
| 42 |
+
|-------------------|----:|
|
| 43 |
+
|Avg. |15.40|
|
| 44 |
+
|IFEval (0-Shot) |31.54|
|
| 45 |
+
|BBH (3-Shot) |19.53|
|
| 46 |
+
|MATH Lvl 5 (4-Shot)| 7.63|
|
| 47 |
+
|GPQA (0-shot) | 3.69|
|
| 48 |
+
|MuSR (0-shot) | 9.41|
|
| 49 |
+
|MMLU-PRO (5-shot) |20.60|
|
| 50 |
+
|