From scratch
Collection
Finisha SLM ✨ • 87 items • Updated
How to use Finisha-F-scratch/KLA-SLM-CODING with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Finisha-F-scratch/KLA-SLM-CODING") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Finisha-F-scratch/KLA-SLM-CODING")
model = AutoModelForCausalLM.from_pretrained("Finisha-F-scratch/KLA-SLM-CODING")How to use Finisha-F-scratch/KLA-SLM-CODING with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Finisha-F-scratch/KLA-SLM-CODING"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Finisha-F-scratch/KLA-SLM-CODING",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/Finisha-F-scratch/KLA-SLM-CODING
How to use Finisha-F-scratch/KLA-SLM-CODING with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Finisha-F-scratch/KLA-SLM-CODING" \
--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": "Finisha-F-scratch/KLA-SLM-CODING",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "Finisha-F-scratch/KLA-SLM-CODING" \
--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": "Finisha-F-scratch/KLA-SLM-CODING",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use Finisha-F-scratch/KLA-SLM-CODING with Docker Model Runner:
docker model run hf.co/Finisha-F-scratch/KLA-SLM-CODING
KLA-SLM-CODING est un Small Language Model (SLM) de la lignée Finisha-LLM. Contrairement aux modèles de masse, il a été extrait du vide et nourri exclusivement de code pur. Il ne simule pas la programmation, il génère la structure.
Le modèle a été entraîné pour anticiper la logique du développeur sans les biais du langage naturel :
Comme tous les modèles de la forge, KLA-SLM-CODING possède sa propre identité :