Text Generation
Transformers
Safetensors
Korean
English
aether_v2_7way
foundation-model
sovereign-ai
fully-open
open-source
mixture-of-experts
Mixture of Experts
heterogeneous-attention
latin-square
from-scratch
reproducible
pretrained
korean
vidraft
aether
conversational
custom_code
Instructions to use FINAL-Bench/Aether-7B-5Attn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FINAL-Bench/Aether-7B-5Attn with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FINAL-Bench/Aether-7B-5Attn", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("FINAL-Bench/Aether-7B-5Attn", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FINAL-Bench/Aether-7B-5Attn with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FINAL-Bench/Aether-7B-5Attn" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FINAL-Bench/Aether-7B-5Attn", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FINAL-Bench/Aether-7B-5Attn
- SGLang
How to use FINAL-Bench/Aether-7B-5Attn 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 "FINAL-Bench/Aether-7B-5Attn" \ --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": "FINAL-Bench/Aether-7B-5Attn", "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 "FINAL-Bench/Aether-7B-5Attn" \ --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": "FINAL-Bench/Aether-7B-5Attn", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use FINAL-Bench/Aether-7B-5Attn with Docker Model Runner:
docker model run hf.co/FINAL-Bench/Aether-7B-5Attn
sanitize: internal paths/ids/comments
Browse files- eval/lmeval_run.py +3 -3
eval/lmeval_run.py
CHANGED
|
@@ -4,7 +4,7 @@ os.environ["CUDA_VISIBLE_DEVICES"] = os.environ.get("GPU", "2")
|
|
| 4 |
os.environ.setdefault("HF_DATASETS_TRUST_REMOTE_CODE", "1")
|
| 5 |
import sys, json, importlib.util, torch
|
| 6 |
|
| 7 |
-
MODEL = os.environ.get("MODEL", "/
|
| 8 |
MERGE_ADAPTER = os.environ.get("MERGE_ADAPTER", "")
|
| 9 |
ADAPTER = os.environ.get("ADAPTER", "")
|
| 10 |
TAG = os.environ.get("TAG", "annealed")
|
|
@@ -53,6 +53,6 @@ for t in TASKS:
|
|
| 53 |
f = lambda v: ("%6.1f" % (100 * v)) if isinstance(v, float) else " -"
|
| 54 |
print("%-18s %8s %8s %8s %8s" % (t, f(a), f(ae), f(n), f(ne)), flush=True)
|
| 55 |
print("-" * 60, flush=True)
|
| 56 |
-
json.dump(out, open("/
|
| 57 |
-
print("[saved] /
|
| 58 |
print("LMEVAL_DONE", flush=True)
|
|
|
|
| 4 |
os.environ.setdefault("HF_DATASETS_TRUST_REMOTE_CODE", "1")
|
| 5 |
import sys, json, importlib.util, torch
|
| 6 |
|
| 7 |
+
MODEL = os.environ.get("MODEL", "/workspace/aether-annealed")
|
| 8 |
MERGE_ADAPTER = os.environ.get("MERGE_ADAPTER", "")
|
| 9 |
ADAPTER = os.environ.get("ADAPTER", "")
|
| 10 |
TAG = os.environ.get("TAG", "annealed")
|
|
|
|
| 53 |
f = lambda v: ("%6.1f" % (100 * v)) if isinstance(v, float) else " -"
|
| 54 |
print("%-18s %8s %8s %8s %8s" % (t, f(a), f(ae), f(n), f(ne)), flush=True)
|
| 55 |
print("-" * 60, flush=True)
|
| 56 |
+
json.dump(out, open("/workspace/lmeval_%s.json" % TAG, "w"), indent=2, ensure_ascii=False)
|
| 57 |
+
print("[saved] /workspace/lmeval_%s.json" % TAG, flush=True)
|
| 58 |
print("LMEVAL_DONE", flush=True)
|