Instructions to use Alienstro/xslm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Alienstro/xslm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Alienstro/xslm")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Alienstro/xslm") model = AutoModelForCausalLM.from_pretrained("Alienstro/xslm", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Alienstro/xslm with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Alienstro/xslm:Q4_K_M # Run inference directly in the terminal: llama cli -hf Alienstro/xslm:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Alienstro/xslm:Q4_K_M # Run inference directly in the terminal: llama cli -hf Alienstro/xslm:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Alienstro/xslm:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Alienstro/xslm:Q4_K_M
Use Docker
docker model run hf.co/Alienstro/xslm:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Alienstro/xslm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Alienstro/xslm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Alienstro/xslm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Alienstro/xslm:Q4_K_M
- SGLang
How to use Alienstro/xslm 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 "Alienstro/xslm" \ --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": "Alienstro/xslm", "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 "Alienstro/xslm" \ --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": "Alienstro/xslm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use Alienstro/xslm with Ollama:
ollama run hf.co/Alienstro/xslm:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Alienstro/xslm with Docker Model Runner:
docker model run hf.co/Alienstro/xslm:Q4_K_M
- Lemonade
How to use Alienstro/xslm with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Alienstro/xslm:Q4_K_M
Run and chat with the model
lemonade run user.xslm-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub
Browse files- .gitattributes +5 -0
- gguf/xslm-70m-BF16.gguf +3 -0
- gguf/xslm-70m-F16.gguf +3 -0
- gguf/xslm-70m-Q4_K_M.gguf +3 -0
- gguf/xslm-70m-Q6_K.gguf +3 -0
- gguf/xslm-70m-Q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
gguf/xslm-70m-BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
gguf/xslm-70m-F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
gguf/xslm-70m-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
gguf/xslm-70m-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
gguf/xslm-70m-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
gguf/xslm-70m-BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c62fdad121a8e9a866d758ee493d4bc79d66eaa08fa3f7c2d07136177be330e0
|
| 3 |
+
size 142293376
|
gguf/xslm-70m-F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65e68c04e944e5e509eb395fac20e766b826e68c6376cdcfabdb50c61c6f7073
|
| 3 |
+
size 142293376
|
gguf/xslm-70m-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:075b4893e7a7b10983a2c593790300b64f5bfbee4cebff3eba42eabcf53783a3
|
| 3 |
+
size 60424576
|
gguf/xslm-70m-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4dbee9746db669c78004db781287a3a08cda72f0811cd9c49dd0c419ef8770fa
|
| 3 |
+
size 76168576
|
gguf/xslm-70m-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:378971a733a2839002f498316a30b0464715a876df1695968fac354b3b3a8e57
|
| 3 |
+
size 76168576
|