How to use from
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 "anonymousML123/Llama-3.1-8B-Tulu10pct-SFT-MAHALS" \
    --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": "anonymousML123/Llama-3.1-8B-Tulu10pct-SFT-MAHALS",
		"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 "anonymousML123/Llama-3.1-8B-Tulu10pct-SFT-MAHALS" \
        --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": "anonymousML123/Llama-3.1-8B-Tulu10pct-SFT-MAHALS",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Llama-3.1-8B-Tulu10pct-SFT-MAHALS

Supervised Fine-Tuned (SFT) Llama 3.1 8B model trained on 10% of the Tulu-3 SFT mixture for the MAHALS research project.

Model Details

Attribute Value
Base Model meta-llama/Llama-3.1-8B
Training Method Supervised Fine-Tuning (SFT)
Dataset allenai/tulu-3-sft-mixture (10%)
Framework allenai/open-instruct
License Llama 3.1 Community License

Inference Requirements

Precision VRAM Required Compatible GPUs
BF16/FP16 ~20 GB A100 40GB, RTX 4090/3090, A10
INT8 ~10 GB T4, RTX 3080
INT4 ~6 GB RTX 3060, consumer GPUs

Usage

Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "anonymousML123/Llama-3.1-8B-Tulu10pct-SFT-MAHALS"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

messages = [{"role": "user", "content": "What is machine learning?"}]

input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
outputs = model.generate(input_ids, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

vLLM Serving

vllm serve anonymousML123/Llama-3.1-8B-Tulu10pct-SFT-MAHALS --max_model_len=4096

Chat Template

This model uses the Tulu chat template:

<|user|>
Your question here
<|assistant|>
Model response<|endoftext|>

Training Configuration

Parameter Value
Learning Rate 5e-6
Effective Batch Size 128
Gradient Accumulation 16
Max Sequence Length 4096
Epochs 2
LR Schedule Linear
Warmup Ratio 0.03
Optimizer AdamW
Precision BF16

Training Data

10% random sample (~94K examples) from allenai/tulu-3-sft-mixture, which includes:

  • FLAN v2
  • Open Assistant
  • ShareGPT
  • Code instructions
  • Math instructions

Intended Use

This model is intended for research on multi-agent alignment and instruction following. It is part of the MAHALS (Multi-Agent Hierarchical Alignment) research project.

Limitations

  • Trained on 10% of data (reduced capability vs full Tulu-3)
  • English only
  • May exhibit biases present in training data
  • Not suitable for production without further evaluation

Citation

@misc{mahals2026,
  title={MAHALS: Multi-Agent Hierarchical Alignment},
  author={Anonymous},
  year={2026},
  note={Under review}
}

Acknowledgments

Built using AllenAI's open-instruct framework.

Downloads last month
10
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for anonymousML123/Llama-3.1-8B-Tulu10pct-SFT-MAHALS

Finetuned
(1479)
this model
Finetunes
1 model

Dataset used to train anonymousML123/Llama-3.1-8B-Tulu10pct-SFT-MAHALS