Text Generation
Transformers
ONNX
English
French
structured-generation
function-calling
tool-use
json
edge
offline
robotics
iot
agentic
small-language-model
Eval Results (legacy)
Run this model with HF Jobs
Run AMFORGE/samg on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/AMFORGE/samg. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/AMFORGE/samg on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/AMFORGE/samg. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/AMFORGE/samg. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use AMFORGE/samg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AMFORGE/samg with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AMFORGE/samg")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AMFORGE/samg", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AMFORGE/samg with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AMFORGE/samg" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AMFORGE/samg", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AMFORGE/samg
- SGLang
How to use AMFORGE/samg 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 "AMFORGE/samg" \ --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": "AMFORGE/samg", "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 "AMFORGE/samg" \ --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": "AMFORGE/samg", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AMFORGE/samg with Docker Model Runner:
docker model run hf.co/AMFORGE/samg
ONNX release (BSL-1.1): add LICENSE
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127samg Business Source License 1.1
Copyright (c) 2026 AMEFORGEAll Rights Reserved.
================================================================================samg LICENSING & COMMERCIAL USAGE================================================================================
The SAM-G model (a 30.3M-parameter dual-mode language model for offline structured action generation) is **Proprietary Software** developed by AMEFORGE. It is available under a**dual-licensing model** to support both the community and sustainable commercial development.
================================================================================1. COMMUNITY LICENSE (Free)================================================================================
You may use samg **freely** for the following purposes:
- **Personal & Hobbyist**: Building personal projects, learning, or experimenting.- **Academic Research**: Non-profit research and education at accredited institutions.- **Small Business**: Commercial use by companies with **Gross Annual Revenue less than $100,000 USD**.
Under the Community License, you are granted a non-exclusive, non-transferable, royalty-free license to: (a) Use the Software for the permitted purposes listed above; (b) Modify the Software for your own internal use; (c) Create derivative works for your own internal use.
Community License Restrictions: - You may NOT redistribute the Software or derivative works to third parties. - You may NOT sublicense the Software. - You may NOT remove or alter any proprietary notices. - You may NOT use the Software in any SaaS (Software-as-a-Service) offering.
================================================================================2. COMMERCIAL LICENSE (Paid)================================================================================
A **Commercial License** is REQUIRED if ANY of the following conditions apply:
(a) Your organization's gross annual revenue **exceeds $100,000 USD**. (b) You are using samg in a **SaaS (Software-as-a-Service)** product where you provide the functionality to third parties (regardless of revenue). (c) You wish to redistribute samg or derivative works in a proprietary product. (d) You require warranty, indemnification, or priority technical support.
Commercial License Benefits: - Legal compliance for enterprise use - Priority technical support - Right to redistribute in proprietary products - Warranty and indemnification options - Influence on the development roadmap - Custom feature development (negotiable)
================================================================================3. TERMS AND CONDITIONS================================================================================
3.1 INTELLECTUAL PROPERTY
The Software, including all modifications, enhancements, derivative works, and associated documentation, remains the exclusive property of AMEFORGE. ThisLicense does not grant you any rights to trademarks, servicemarks, or trade names of the Licensor.
3.2 NO WARRANTY (Community License)
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
3.3 LIMITATION OF LIABILITY
IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3.4 TERMINATION
This License is effective until terminated. Your rights under this License will terminate automatically without notice if you fail to comply with any of its terms. Upon termination, you must destroy all copies of the Software in your possession.
3.5 GOVERNING LAW
This License shall be governed by and construed in accordance with the laws of the Province of Ontario, Canada, without regard to its conflict of law provisions.
================================================================================4. CONTACT & COMMERCIAL LICENSING================================================================================
To obtain a Commercial License or for any licensing inquiries, please contact:
AMEFORGE
Email: contact@ameforge.tech GitHub: https://github.com/amforge1
================================================================================5. THIRD-PARTY COMPONENTS================================================================================
This Software may include or depend on third-party open-source components, which are subject to their own respective licenses. The use of such components is governed by their original licenses, not this License.
================================================================================
By using this Software, you acknowledge that you have read, understood, and agree to be bound by the terms and conditions of this License.
================================================================================END OF LICENSE================================================================================LICENSEAdded+127