Text Generation
Transformers
Safetensors
Indonesian
mathematics
education
tutoring
reasoning
problem-solving
scaffolding
indonesian
Eval Results (legacy)
Instructions to use alifiakania/math-scaffolding-middleschool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alifiakania/math-scaffolding-middleschool with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="alifiakania/math-scaffolding-middleschool")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("alifiakania/math-scaffolding-middleschool", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use alifiakania/math-scaffolding-middleschool with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alifiakania/math-scaffolding-middleschool" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alifiakania/math-scaffolding-middleschool", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/alifiakania/math-scaffolding-middleschool
- SGLang
How to use alifiakania/math-scaffolding-middleschool 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 "alifiakania/math-scaffolding-middleschool" \ --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": "alifiakania/math-scaffolding-middleschool", "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 "alifiakania/math-scaffolding-middleschool" \ --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": "alifiakania/math-scaffolding-middleschool", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use alifiakania/math-scaffolding-middleschool with Docker Model Runner:
docker model run hf.co/alifiakania/math-scaffolding-middleschool
update Readme
Browse files
README.md
CHANGED
|
@@ -1,3 +1,48 @@
|
|
| 1 |
---
|
| 2 |
license: llama3.1
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: llama3.1
|
| 3 |
+
|
| 4 |
+
language:
|
| 5 |
+
- id
|
| 6 |
+
|
| 7 |
+
base_model:
|
| 8 |
+
- meta-llama/Llama-3.1-8B-Instruct
|
| 9 |
+
|
| 10 |
+
pipeline_tag: text-generation
|
| 11 |
+
|
| 12 |
+
library_name: transformers
|
| 13 |
+
|
| 14 |
+
tags:
|
| 15 |
+
- mathematics
|
| 16 |
+
- education
|
| 17 |
+
- tutoring
|
| 18 |
+
- reasoning
|
| 19 |
+
- problem-solving
|
| 20 |
+
- scaffolding
|
| 21 |
+
- indonesian
|
| 22 |
+
|
| 23 |
+
model-index:
|
| 24 |
+
- name: Math Scaffolding LLaMA 8B
|
| 25 |
+
results:
|
| 26 |
+
- task:
|
| 27 |
+
type: text-generation
|
| 28 |
+
name: Mathematical Scaffolding Generation
|
| 29 |
+
dataset:
|
| 30 |
+
type: custom
|
| 31 |
+
name: Mathematics Scaffolding Evaluation Set
|
| 32 |
+
metrics:
|
| 33 |
+
- type: accuracy
|
| 34 |
+
value: 27.13
|
| 35 |
+
name: Exact Scaffolding Accuracy (%)
|
| 36 |
+
|
| 37 |
+
- type: bleu
|
| 38 |
+
value: 0.072
|
| 39 |
+
name: BLEU
|
| 40 |
+
|
| 41 |
+
- type: rouge
|
| 42 |
+
value: 0.3126
|
| 43 |
+
name: ROUGE-L
|
| 44 |
+
|
| 45 |
+
- type: perplexity
|
| 46 |
+
value: 3.4329
|
| 47 |
+
name: Perplexity
|
| 48 |
+
---
|