Instructions to use SuperAGI/SAM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SuperAGI/SAM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SuperAGI/SAM")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SuperAGI/SAM") model = AutoModelForCausalLM.from_pretrained("SuperAGI/SAM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SuperAGI/SAM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SuperAGI/SAM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SuperAGI/SAM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SuperAGI/SAM
- SGLang
How to use SuperAGI/SAM 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 "SuperAGI/SAM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SuperAGI/SAM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "SuperAGI/SAM" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SuperAGI/SAM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SuperAGI/SAM with Docker Model Runner:
docker model run hf.co/SuperAGI/SAM
Adding Evaluation Results
#1
by leaderboard-pr-bot - opened
README.md
CHANGED
|
@@ -1,7 +1,110 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
| 6 |
# Model Card
|
| 7 |
SAM (Small Agentic Model), a 7B model that demonstrates impressive reasoning abilities despite its smaller size. SAM-7B has outperformed existing SoTA models on various reasoning benchmarks, including GSM8k and ARC-C.
|
|
@@ -67,4 +170,17 @@ The model is not suitable for conversations and simple Q&A, it performs better i
|
|
| 67 |
It does not have any moderation mechanisms. Therefore, the model is not suitable for production usage as it doesn't have guardrails for toxicity, societal bias, and language limitations. We would love to collaborate with the community to build safer and better models.
|
| 68 |
|
| 69 |
## The SuperAGI AI Team
|
| 70 |
-
Anmol Gautam, Arkajit Datta, Rajat Chawla, Ayush Vatsal, Sukrit Chatterjee, Adarsh Jha, Abhijeet Sinha, Rakesh Krishna, Adarsh Deep, Ishaan Bhola, Mukunda NS, Nishant Gaurav.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
model-index:
|
| 6 |
+
- name: SAM
|
| 7 |
+
results:
|
| 8 |
+
- task:
|
| 9 |
+
type: text-generation
|
| 10 |
+
name: Text Generation
|
| 11 |
+
dataset:
|
| 12 |
+
name: AI2 Reasoning Challenge (25-Shot)
|
| 13 |
+
type: ai2_arc
|
| 14 |
+
config: ARC-Challenge
|
| 15 |
+
split: test
|
| 16 |
+
args:
|
| 17 |
+
num_few_shot: 25
|
| 18 |
+
metrics:
|
| 19 |
+
- type: acc_norm
|
| 20 |
+
value: 59.39
|
| 21 |
+
name: normalized accuracy
|
| 22 |
+
source:
|
| 23 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=SuperAGI/SAM
|
| 24 |
+
name: Open LLM Leaderboard
|
| 25 |
+
- task:
|
| 26 |
+
type: text-generation
|
| 27 |
+
name: Text Generation
|
| 28 |
+
dataset:
|
| 29 |
+
name: HellaSwag (10-Shot)
|
| 30 |
+
type: hellaswag
|
| 31 |
+
split: validation
|
| 32 |
+
args:
|
| 33 |
+
num_few_shot: 10
|
| 34 |
+
metrics:
|
| 35 |
+
- type: acc_norm
|
| 36 |
+
value: 82.31
|
| 37 |
+
name: normalized accuracy
|
| 38 |
+
source:
|
| 39 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=SuperAGI/SAM
|
| 40 |
+
name: Open LLM Leaderboard
|
| 41 |
+
- task:
|
| 42 |
+
type: text-generation
|
| 43 |
+
name: Text Generation
|
| 44 |
+
dataset:
|
| 45 |
+
name: MMLU (5-Shot)
|
| 46 |
+
type: cais/mmlu
|
| 47 |
+
config: all
|
| 48 |
+
split: test
|
| 49 |
+
args:
|
| 50 |
+
num_few_shot: 5
|
| 51 |
+
metrics:
|
| 52 |
+
- type: acc
|
| 53 |
+
value: 62.15
|
| 54 |
+
name: accuracy
|
| 55 |
+
source:
|
| 56 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=SuperAGI/SAM
|
| 57 |
+
name: Open LLM Leaderboard
|
| 58 |
+
- task:
|
| 59 |
+
type: text-generation
|
| 60 |
+
name: Text Generation
|
| 61 |
+
dataset:
|
| 62 |
+
name: TruthfulQA (0-shot)
|
| 63 |
+
type: truthful_qa
|
| 64 |
+
config: multiple_choice
|
| 65 |
+
split: validation
|
| 66 |
+
args:
|
| 67 |
+
num_few_shot: 0
|
| 68 |
+
metrics:
|
| 69 |
+
- type: mc2
|
| 70 |
+
value: 52.64
|
| 71 |
+
source:
|
| 72 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=SuperAGI/SAM
|
| 73 |
+
name: Open LLM Leaderboard
|
| 74 |
+
- task:
|
| 75 |
+
type: text-generation
|
| 76 |
+
name: Text Generation
|
| 77 |
+
dataset:
|
| 78 |
+
name: Winogrande (5-shot)
|
| 79 |
+
type: winogrande
|
| 80 |
+
config: winogrande_xl
|
| 81 |
+
split: validation
|
| 82 |
+
args:
|
| 83 |
+
num_few_shot: 5
|
| 84 |
+
metrics:
|
| 85 |
+
- type: acc
|
| 86 |
+
value: 76.4
|
| 87 |
+
name: accuracy
|
| 88 |
+
source:
|
| 89 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=SuperAGI/SAM
|
| 90 |
+
name: Open LLM Leaderboard
|
| 91 |
+
- task:
|
| 92 |
+
type: text-generation
|
| 93 |
+
name: Text Generation
|
| 94 |
+
dataset:
|
| 95 |
+
name: GSM8k (5-shot)
|
| 96 |
+
type: gsm8k
|
| 97 |
+
config: main
|
| 98 |
+
split: test
|
| 99 |
+
args:
|
| 100 |
+
num_few_shot: 5
|
| 101 |
+
metrics:
|
| 102 |
+
- type: acc
|
| 103 |
+
value: 22.9
|
| 104 |
+
name: accuracy
|
| 105 |
+
source:
|
| 106 |
+
url: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query=SuperAGI/SAM
|
| 107 |
+
name: Open LLM Leaderboard
|
| 108 |
---
|
| 109 |
# Model Card
|
| 110 |
SAM (Small Agentic Model), a 7B model that demonstrates impressive reasoning abilities despite its smaller size. SAM-7B has outperformed existing SoTA models on various reasoning benchmarks, including GSM8k and ARC-C.
|
|
|
|
| 170 |
It does not have any moderation mechanisms. Therefore, the model is not suitable for production usage as it doesn't have guardrails for toxicity, societal bias, and language limitations. We would love to collaborate with the community to build safer and better models.
|
| 171 |
|
| 172 |
## The SuperAGI AI Team
|
| 173 |
+
Anmol Gautam, Arkajit Datta, Rajat Chawla, Ayush Vatsal, Sukrit Chatterjee, Adarsh Jha, Abhijeet Sinha, Rakesh Krishna, Adarsh Deep, Ishaan Bhola, Mukunda NS, Nishant Gaurav.
|
| 174 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
|
| 175 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_SuperAGI__SAM)
|
| 176 |
+
|
| 177 |
+
| Metric |Value|
|
| 178 |
+
|---------------------------------|----:|
|
| 179 |
+
|Avg. |59.30|
|
| 180 |
+
|AI2 Reasoning Challenge (25-Shot)|59.39|
|
| 181 |
+
|HellaSwag (10-Shot) |82.31|
|
| 182 |
+
|MMLU (5-Shot) |62.15|
|
| 183 |
+
|TruthfulQA (0-shot) |52.64|
|
| 184 |
+
|Winogrande (5-shot) |76.40|
|
| 185 |
+
|GSM8k (5-shot) |22.90|
|
| 186 |
+
|