YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Quantization made by Richard Erkhov.

Github

Discord

Request more models

SAM - GGUF

Name Quant method Size
SAM.Q2_K.gguf Q2_K 2.53GB
SAM.IQ3_XS.gguf IQ3_XS 2.81GB
SAM.IQ3_S.gguf IQ3_S 2.96GB
SAM.Q3_K_S.gguf Q3_K_S 2.95GB
SAM.IQ3_M.gguf IQ3_M 3.06GB
SAM.Q3_K.gguf Q3_K 3.28GB
SAM.Q3_K_M.gguf Q3_K_M 3.28GB
SAM.Q3_K_L.gguf Q3_K_L 3.56GB
SAM.IQ4_XS.gguf IQ4_XS 3.67GB
SAM.Q4_0.gguf Q4_0 3.83GB
SAM.IQ4_NL.gguf IQ4_NL 3.87GB
SAM.Q4_K_S.gguf Q4_K_S 3.86GB
SAM.Q4_K.gguf Q4_K 4.07GB
SAM.Q4_K_M.gguf Q4_K_M 4.07GB
SAM.Q4_1.gguf Q4_1 4.24GB
SAM.Q5_0.gguf Q5_0 4.65GB
SAM.Q5_K_S.gguf Q5_K_S 4.65GB
SAM.Q5_K.gguf Q5_K 4.78GB
SAM.Q5_K_M.gguf Q5_K_M 4.78GB
SAM.Q5_1.gguf Q5_1 5.07GB
SAM.Q6_K.gguf Q6_K 5.53GB
SAM.Q8_0.gguf Q8_0 7.17GB

Original model description:

license: apache-2.0 language: - en

Model Card

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.

For full details of this model please read our release blog post.

Key Contributions

  • SAM-7B outperforms GPT 3.5, Orca, and several other 70B models on multiple reasoning benchmarks, including ARC-C and GSM8k.
  • Interestingly, despite being trained on a 97% smaller dataset, SAM-7B surpasses Orca-13B on GSM8k.
  • All responses in our fine-tuning dataset are generated by open-source models without any assistance from state-of-the-art models like GPT-3.5 or GPT-4.

Training

  • Trained by: SuperAGI Team
  • Hardware: NVIDIA 6 x H100 SxM (80GB)
  • Model used: Mistral 7B
  • Duration of finetuning: 4 hours
  • Number of epochs: 1
  • Batch size: 16
  • Learning Rate: 2e-5
  • Warmup Ratio: 0.1
  • Optmizer: AdamW
  • Scheduler: Cosine

Example Prompt

The template used to build a prompt for the Instruct model is defined as follows:

<s> [INST] Instruction [/INST] Model answer</s> [INST] Follow-up instruction [/INST]

Note that <s> and </s> are special tokens for beginning of string (BOS) and end of string (EOS) while [INST] and [/INST] are regular strings.

Evaluation

These benchmarks show that our model has improved reasoning as compared to orca 2-7b, orca 2-13b and GPT-3.5. Despite being smaller in size, we show better multi-hop reasoning, as shown below: Reasoning Benchmark Performance

Note: Temperature=0.3 is the suggested for optimal performance

Run the model

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "SuperAGI/SAM"
tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForCausalLM.from_pretrained(model_id)

text = "Can elephants fly?"
inputs = tokenizer(text, return_tensors="pt")

outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Limitations

SAM is a demonstration that better reasoning can be induced using less but high-quality data generated using OpenSource LLMs. The model is not suitable for conversations and simple Q&A, it performs better in task breakdown and reasoning only. 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.

The SuperAGI AI Team

Anmol Gautam, Arkajit Datta, Rajat Chawla, Ayush Vatsal, Sukrit Chatterjee, Adarsh Jha, Abhijeet Sinha, Rakesh Krishna, Adarsh Deep, Ishaan Bhola, Mukunda NS, Nishant Gaurav.

Downloads last month
90
GGUF
Model size
7B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support