Text Generation
Transformers
Safetensors
English
lfm2
text-generation-inference
unsloth
conversational
Instructions to use smjain/sap-archgen-lfm2-230M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use smjain/sap-archgen-lfm2-230M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="smjain/sap-archgen-lfm2-230M") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("smjain/sap-archgen-lfm2-230M") model = AutoModelForCausalLM.from_pretrained("smjain/sap-archgen-lfm2-230M", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use smjain/sap-archgen-lfm2-230M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "smjain/sap-archgen-lfm2-230M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "smjain/sap-archgen-lfm2-230M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/smjain/sap-archgen-lfm2-230M
- SGLang
How to use smjain/sap-archgen-lfm2-230M 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 "smjain/sap-archgen-lfm2-230M" \ --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": "smjain/sap-archgen-lfm2-230M", "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 "smjain/sap-archgen-lfm2-230M" \ --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": "smjain/sap-archgen-lfm2-230M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use smjain/sap-archgen-lfm2-230M with Docker Model Runner:
docker model run hf.co/smjain/sap-archgen-lfm2-230M
Upload quality_report.json with huggingface_hub
Browse files- quality_report.json +81 -0
quality_report.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"arch": "Procurement copilot (novel)",
|
| 4 |
+
"ok": true,
|
| 5 |
+
"blocks": 6,
|
| 6 |
+
"components": 17,
|
| 7 |
+
"connections": 13,
|
| 8 |
+
"verify_rounds": 2,
|
| 9 |
+
"remaining_issues": [
|
| 10 |
+
"2 unconnected component(s) ['c3', 'c1']: wire each into the flow",
|
| 11 |
+
"under-connected: 13 connections for 15 components (expect >= 14)",
|
| 12 |
+
"duplicate component id(s) ['c12', 'c13']: each component must appear once",
|
| 13 |
+
"duplicate service(s) ['SAP Destination service']: wire the existing one, do NOT add duplicate services",
|
| 14 |
+
"Cloud Connector present but no SAP Connectivity service (incomplete on-prem tunnel)."
|
| 15 |
+
],
|
| 16 |
+
"info": "24 nodes, 13 edges"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"arch": "Predictive maintenance (novel)",
|
| 20 |
+
"ok": true,
|
| 21 |
+
"blocks": 5,
|
| 22 |
+
"components": 10,
|
| 23 |
+
"connections": 9,
|
| 24 |
+
"verify_rounds": 0,
|
| 25 |
+
"remaining_issues": [],
|
| 26 |
+
"info": "16 nodes, 9 edges"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"arch": "Claims handling RAG (held-out domain)",
|
| 30 |
+
"ok": false,
|
| 31 |
+
"blocks": 0,
|
| 32 |
+
"components": 0,
|
| 33 |
+
"connections": 2,
|
| 34 |
+
"verify_rounds": 2,
|
| 35 |
+
"remaining_issues": [
|
| 36 |
+
"fewer than 2 components placed",
|
| 37 |
+
"connection c0->c1 references missing component",
|
| 38 |
+
"connection c1->c0 references missing component",
|
| 39 |
+
"does not render: 1 nodes, 0 edges"
|
| 40 |
+
],
|
| 41 |
+
"info": "1 nodes, 0 edges"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"arch": "Asset management events (held-out domain)",
|
| 45 |
+
"ok": true,
|
| 46 |
+
"blocks": 5,
|
| 47 |
+
"components": 8,
|
| 48 |
+
"connections": 7,
|
| 49 |
+
"verify_rounds": 0,
|
| 50 |
+
"remaining_issues": [],
|
| 51 |
+
"info": "14 nodes, 7 edges"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"arch": "AI document agent (head-to-head)",
|
| 55 |
+
"ok": true,
|
| 56 |
+
"blocks": 6,
|
| 57 |
+
"components": 12,
|
| 58 |
+
"connections": 10,
|
| 59 |
+
"verify_rounds": 2,
|
| 60 |
+
"remaining_issues": [
|
| 61 |
+
"6 unconnected component(s) ['c4', 'c2', 'c9', 'c10', 'c3', 'c1']: wire each into the flow",
|
| 62 |
+
"under-connected: 10 connections for 12 components (expect >= 11)",
|
| 63 |
+
"duplicate service(s) ['SAP HANA Cloud']: wire the existing one, do NOT add duplicate services",
|
| 64 |
+
"Cloud Connector present but no SAP Connectivity service (incomplete on-prem tunnel)."
|
| 65 |
+
],
|
| 66 |
+
"info": "19 nodes, 10 edges"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"arch": "Task Center (known reference)",
|
| 70 |
+
"ok": true,
|
| 71 |
+
"blocks": 2,
|
| 72 |
+
"components": 18,
|
| 73 |
+
"connections": 8,
|
| 74 |
+
"verify_rounds": 2,
|
| 75 |
+
"remaining_issues": [
|
| 76 |
+
"duplicate component id(s) ['c0', 'c1', 'c2', 'c3', 'c4', 'c5', 'c6', 'c7', 'c8']: each component must appear once",
|
| 77 |
+
"duplicate service(s) ['SAP Application Logan service', 'SAP Build Work Zone, standard', 'SAP Cloud Identity Services', 'SAP Connectivity service', 'SAP Destination service', 'SAP Document Management hub', 'SAP Private Link service', 'SAP Task Center']: wire the existing one, do NOT add duplicate services"
|
| 78 |
+
],
|
| 79 |
+
"info": "21 nodes, 8 edges"
|
| 80 |
+
}
|
| 81 |
+
]
|