Text Generation
Transformers
English
French
agentic
function-calling
tool-use
structured-generation
orchestration
code-agent
mcp
edge
small-language-model
Eval Results (legacy)
Instructions to use AMFORGE/samg-cobratooling with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AMFORGE/samg-cobratooling with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AMFORGE/samg-cobratooling")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AMFORGE/samg-cobratooling", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AMFORGE/samg-cobratooling with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AMFORGE/samg-cobratooling" # 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-cobratooling", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AMFORGE/samg-cobratooling
- SGLang
How to use AMFORGE/samg-cobratooling 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-cobratooling" \ --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-cobratooling", "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-cobratooling" \ --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-cobratooling", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AMFORGE/samg-cobratooling with Docker Model Runner:
docker model run hf.co/AMFORGE/samg-cobratooling
Repo hygiene: remove latest.pt duplicate + tokenizer vocab; document runtime requirement
Browse files- README.md +2 -0
- latest.pt +0 -3
- samg_tokenizer.vocab +0 -0
README.md
CHANGED
|
@@ -141,6 +141,8 @@ ids = torch.tensor([sp.EncodeAsIds(prompt)])
|
|
| 141 |
|
| 142 |
## Limitations
|
| 143 |
|
|
|
|
|
|
|
| 144 |
- `build_test_cycle` (17%) and the exact-match of `plan_chain`/`risk_gate`
|
| 145 |
(58%) plateau because long, strictly-ordered plans are hard at 30M; decompose
|
| 146 |
long plans app-side into shorter sub-calls.
|
|
|
|
| 141 |
|
| 142 |
## Limitations
|
| 143 |
|
| 144 |
+
- Inference requires the official AMEFORGE runtime. The published weights are not compatible with from-scratch reimplementations, and third-party ports are unsupported.
|
| 145 |
+
|
| 146 |
- `build_test_cycle` (17%) and the exact-match of `plan_chain`/`risk_gate`
|
| 147 |
(58%) plateau because long, strictly-ordered plans are hard at 30M; decompose
|
| 148 |
long plans app-side into shorter sub-calls.
|
latest.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:16f84dfd996cac9c055f7aecf2f805e425bb65b4d832a145e7bb3e4bfe11e84f
|
| 3 |
-
size 362276829
|
|
|
|
|
|
|
|
|
|
|
|
samg_tokenizer.vocab
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|