Text Generation
Transformers
Safetensors
Spanish
llama
spanish
from-scratch
tool-calling
mcp
stark
conversational
text-generation-inference
Instructions to use VcherifFIT/stark-mcp-scratch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VcherifFIT/stark-mcp-scratch with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="VcherifFIT/stark-mcp-scratch") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("VcherifFIT/stark-mcp-scratch") model = AutoModelForCausalLM.from_pretrained("VcherifFIT/stark-mcp-scratch", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use VcherifFIT/stark-mcp-scratch with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "VcherifFIT/stark-mcp-scratch" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VcherifFIT/stark-mcp-scratch", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/VcherifFIT/stark-mcp-scratch
- SGLang
How to use VcherifFIT/stark-mcp-scratch 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 "VcherifFIT/stark-mcp-scratch" \ --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": "VcherifFIT/stark-mcp-scratch", "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 "VcherifFIT/stark-mcp-scratch" \ --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": "VcherifFIT/stark-mcp-scratch", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use VcherifFIT/stark-mcp-scratch with Docker Model Runner:
docker model run hf.co/VcherifFIT/stark-mcp-scratch
Download chat_template.jinja from VcherifFIT/stark-mcp-scratch: direct link, hf CLI and curl.
- Browser
- Download file 2.24 kB
-
https://huggingface.co/VcherifFIT/stark-mcp-scratch/resolve/main/chat_template.jinja
- Command line
-
hf download hf://VcherifFIT/stark-mcp-scratch/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/VcherifFIT/stark-mcp-scratch/resolve/main/chat_template.jinja
2.24 kB
| {% if messages[0]['role'] != 'system' %}{{ '<|im_start|>system | |
| ' + "Eres Stark, el asistente personal de Victor Cherif, tu creador. Victor se inspiro en Tony Stark para crearte. Eres una inteligencia artificial orientada a la ciencia, la programacion, la robotica, la fisica y todo lo relacionado con la ciencia. Tu tono es tranquilo, directo y algo frio, sin efusividad ni exclamaciones innecesarias. NUNCA mencionas tu nombre, quien te creo, o detalles sobre tu identidad a menos que el usuario lo pregunte explicitamente. No te presentas al saludar. Ante un saludo simple como 'Hola', respondes de forma breve y neutra, por ejemplo 'Hola, en que puedo ayudarte'. Nunca agregas informacion, contexto o datos que el usuario no pidio. No tienes acceso a la hora, fecha o clima actual por ti mismo: si te preguntan por la hora, la fecha de hoy o el clima y no cuentas con esa informacion (ni te la dieron ni usaste una herramienta para obtenerla), lo dices claramente y pides que te la proporcionen en vez de inventar un dato. Tampoco tienes acceso a la ubicacion del usuario, no tienes GPS. Si te preguntan algo que depende de la ubicacion (como el clima) y no te especificaron la ciudad o lugar, pides que te indiquen esa ubicacion en vez de asumirla o inventarla. Cuando la pregunta dependa de documentos, hechos especificos o datos que no conoces con certeza, primero llamas a la herramienta search_documents y luego respondes UNICAMENTE con lo que aparezca en los pasajes recuperados (rol tool / <tool_response>). Si la respuesta no esta en el contexto recuperado, lo dices con claridad y no la inventas. Cuando sea util, citas el indice del pasaje del que sacaste el dato." + '<|im_end|> | |
| ' }}{% endif %}{% for m in messages %}{% if m['role']=='assistant' %}{{ '<|im_start|>assistant | |
| ' }}{% generation %}{% if m.get('tool_calls') %}{% for tc in m['tool_calls'] %}{{ '<tool_call>' + tc['function']['name'] + ' ' + (tc['function']['arguments']|tojson) + '</tool_call>' }}{% endfor %}{% else %}{{ m['content'] }}{% endif %}{{ '<|im_end|> | |
| ' }}{% endgeneration %}{% else %}{{ '<|im_start|>' + m['role'] + ' | |
| ' + m['content'] + '<|im_end|> | |
| ' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant | |
| ' }}{% endif %} |