Text Generation
Transformers
Safetensors
English
nemotron_h
latent-moe
mamba
multi-agent
agent-organisations
reinforcement-learning
rlcr
research
conversational
custom_code
Instructions to use GeneralReasoning/Avalon-M1-Mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GeneralReasoning/Avalon-M1-Mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GeneralReasoning/Avalon-M1-Mini", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GeneralReasoning/Avalon-M1-Mini", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("GeneralReasoning/Avalon-M1-Mini", trust_remote_code=True, device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GeneralReasoning/Avalon-M1-Mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GeneralReasoning/Avalon-M1-Mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GeneralReasoning/Avalon-M1-Mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/GeneralReasoning/Avalon-M1-Mini
- SGLang
How to use GeneralReasoning/Avalon-M1-Mini 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 "GeneralReasoning/Avalon-M1-Mini" \ --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": "GeneralReasoning/Avalon-M1-Mini", "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 "GeneralReasoning/Avalon-M1-Mini" \ --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": "GeneralReasoning/Avalon-M1-Mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use GeneralReasoning/Avalon-M1-Mini with Docker Model Runner:
docker model run hf.co/GeneralReasoning/Avalon-M1-Mini
Add files using upload-large-folder tool
Browse files- model-00003-of-00050.safetensors +3 -0
- model-00014-of-00050.safetensors +3 -0
- model-00026-of-00050.safetensors +3 -0
- model-00029-of-00050.safetensors +3 -0
- model-00032-of-00050.safetensors +3 -0
- model-00034-of-00050.safetensors +3 -0
- model-00043-of-00050.safetensors +3 -0
- model-00050-of-00050.safetensors +3 -0
model-00003-of-00050.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e4a57d8b1233c946851b1f94fc59ee5b593add5a4978f68852ac54d47f1561f8
|
| 3 |
+
size 4837065264
|
model-00014-of-00050.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8e9dd97f9ab9418763980d59189bbd89540a7b082676ab23392bee0a070736b
|
| 3 |
+
size 4832484512
|
model-00026-of-00050.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb5ca72cca324a514b4146382232caf7616394f7e60281f1e96f8ee349ad1a0e
|
| 3 |
+
size 4833523872
|
model-00029-of-00050.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd115cb8b152bd6923c0ab37fce423a44b4b98927d53c8085653f120a49dc6fe
|
| 3 |
+
size 4837065264
|
model-00032-of-00050.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36a2628b890e05469f337e5fbdf400cfee34f4b79f0300b9539e07f110e9b0ce
|
| 3 |
+
size 4836810680
|
model-00034-of-00050.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:064f8534fd5f8868e077ad6eb58b0f5646712cc5dd2fe9935e26eae5d57fdc6d
|
| 3 |
+
size 4837065264
|
model-00043-of-00050.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9050859d0a969f7b6854a9fd19ba23cf793da203a31fd9f9ac6cee3f655c06f0
|
| 3 |
+
size 4836810632
|
model-00050-of-00050.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:929eaaf088867ea3948c12cc8546f1b8030d5f25e147d74c58948679f8bad221
|
| 3 |
+
size 4326379064
|