Text Generation
Transformers
PyTorch
Safetensors
GGUF
English
collision
conversational
rag
reasoning
deepseek-r1-style
system-2
agent
ollama
llama.cpp
fastapi
openai-compatible
slm
edge-ai
cpu-first
in-house-nlp
math
keyphrase-extraction
topic-classification
grammar-correction
reading-comprehension
sentiment-analysis
research
educational
custom_code
Instructions to use collision-10M/Collision-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use collision-10M/Collision-1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="collision-10M/Collision-1B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("collision-10M/Collision-1B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use collision-10M/Collision-1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "collision-10M/Collision-1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "collision-10M/Collision-1B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/collision-10M/Collision-1B
- SGLang
How to use collision-10M/Collision-1B 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 "collision-10M/Collision-1B" \ --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": "collision-10M/Collision-1B", "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 "collision-10M/Collision-1B" \ --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": "collision-10M/Collision-1B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use collision-10M/Collision-1B with Docker Model Runner:
docker model run hf.co/collision-10M/Collision-1B
Release collision-10M/Collision-1B with In-House NLP Engine & Grounded Intelligence
1d81288 verified Download Modelfile from collision-10M/Collision-1B: direct link, hf CLI and curl.
- Browser
- Download file 720 Bytes
-
https://huggingface.co/collision-10M/Collision-1B/resolve/main/Modelfile
- Command line
-
hf download hf://collision-10M/Collision-1B/Modelfile
-
curl -L -o Modelfile https://huggingface.co/collision-10M/Collision-1B/resolve/main/Modelfile
720 Bytes
| # Ollama Modelfile for COLLISION | |
| # Usage: | |
| # ollama create collision -f Modelfile | |
| # ollama run collision | |
| FROM ./model.pt | |
| TEMPLATE """{{- if .System }} | |
| System: {{ .System }} | |
| {{- end }} | |
| {{- range .Messages }} | |
| {{- if eq .Role "user" }} | |
| User: {{ .Content }} | |
| {{- else if eq .Role "assistant" }} | |
| Assistant: {{ .Content }} | |
| {{- end }} | |
| {{- end }} | |
| Assistant: """ | |
| SYSTEM """You are COLLISION-1B, an ultra-fast, high-efficiency cognitive transformer language model with built-in natural grounding, deterministic precision reasoning, and complete NLP capabilities.""" | |
| PARAMETER temperature 0.7 | |
| PARAMETER top_p 0.9 | |
| PARAMETER top_k 50 | |
| PARAMETER stop "User:" | |
| PARAMETER stop "System:" | |
| PARAMETER stop "[EOS]" | |
| PARAMETER stop "</s>" | |