Text Generation
GGUF
Chinese
English
llama.cpp
ollama
random-number
toy-model
zero-training
tiny
conversational
Instructions to use lijie1228/a-random-number-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use lijie1228/a-random-number-model 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 lijie1228/a-random-number-model:Q4_K_M # Run inference directly in the terminal: llama cli -hf lijie1228/a-random-number-model:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf lijie1228/a-random-number-model:Q4_K_M # Run inference directly in the terminal: llama cli -hf lijie1228/a-random-number-model: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 lijie1228/a-random-number-model:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf lijie1228/a-random-number-model:Q4_K_M
Use Docker
docker model run hf.co/lijie1228/a-random-number-model:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use lijie1228/a-random-number-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lijie1228/a-random-number-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lijie1228/a-random-number-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/lijie1228/a-random-number-model:Q4_K_M
- Ollama
How to use lijie1228/a-random-number-model with Ollama:
ollama run hf.co/lijie1228/a-random-number-model:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use lijie1228/a-random-number-model with Docker Model Runner:
docker model run hf.co/lijie1228/a-random-number-model:Q4_K_M
- Lemonade
How to use lijie1228/a-random-number-model with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull lijie1228/a-random-number-model:Q4_K_M
Run and chat with the model
lemonade run user.a-random-number-model-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Download Modelfiles/Modelfile.binary from lijie1228/a-random-number-model: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/lijie1228/a-random-number-model/resolve/main/Modelfiles/Modelfile.binary
- Command line
-
hf download hf://lijie1228/a-random-number-model/Modelfiles/Modelfile.binary
-
curl -L -o Modelfile.binary https://huggingface.co/lijie1228/a-random-number-model/resolve/main/Modelfiles/Modelfile.binary
703 Bytes
| # 随机数模型 · 0 / 1(binary) | |
| # 用法(在仓库根目录): | |
| # ollama create random-binary -f Modelfiles/Modelfile.binary | |
| # ollama run random-binary "随便说点什么" | |
| # 想换量化档位:把下面 FROM 那行的文件名改成 ../gguf/ 里任意一个即可。 | |
| FROM ../gguf/random-binary-Q4_K_M.gguf | |
| # 关键:top_k 必须 ≥ 取值个数、top_p 必须为 1.0。 | |
| # 否则采样器会砍掉尾部概率,某些取值永远抽不到(见 README 实测)。 | |
| PARAMETER temperature 1.0 | |
| PARAMETER top_k 2 | |
| PARAMETER top_p 1.0 | |
| PARAMETER min_p 0.0 | |
| PARAMETER repeat_penalty 1.0 | |
| PARAMETER presence_penalty 0.0 | |
| PARAMETER frequency_penalty 0.0 | |