Text Generation
Transformers
Safetensors
GGUF
Chinese
English
mixtral
gomoku
ollama
Mixture of Experts
conversational
text-generation-inference
Instructions to use l898974766/gomoku with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use l898974766/gomoku with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="l898974766/gomoku") 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("l898974766/gomoku") model = AutoModelForCausalLM.from_pretrained("l898974766/gomoku", 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
- llama.cpp
How to use l898974766/gomoku 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 l898974766/gomoku:F32 # Run inference directly in the terminal: llama cli -hf l898974766/gomoku:F32
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf l898974766/gomoku:F32 # Run inference directly in the terminal: llama cli -hf l898974766/gomoku:F32
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 l898974766/gomoku:F32 # Run inference directly in the terminal: ./build/bin/llama cli -hf l898974766/gomoku:F32
Use Docker
docker model run hf.co/l898974766/gomoku:F32
- Llama new
- LM Studio
- Jan
- vLLM
How to use l898974766/gomoku with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "l898974766/gomoku" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "l898974766/gomoku", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/l898974766/gomoku:F32
- SGLang
How to use l898974766/gomoku 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 "l898974766/gomoku" \ --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": "l898974766/gomoku", "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 "l898974766/gomoku" \ --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": "l898974766/gomoku", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use l898974766/gomoku with Ollama:
ollama run hf.co/l898974766/gomoku:F32
- Unsloth Desktop
- Docker Model Runner
How to use l898974766/gomoku with Docker Model Runner:
docker model run hf.co/l898974766/gomoku:F32
- Lemonade
How to use l898974766/gomoku with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull l898974766/gomoku:F32
Run and chat with the model
lemonade run user.gomoku-F32
List all available models
lemonade list
- Atomic Chat
Download reports/native.json from l898974766/gomoku: direct link, hf CLI and curl.
- Browser
- Download file 9.07 kB
-
https://huggingface.co/l898974766/gomoku/resolve/main/reports/native.json
- Command line
-
hf download hf://l898974766/gomoku/reports/native.json
-
curl -L -o native.json https://huggingface.co/l898974766/gomoku/resolve/main/reports/native.json
9.07 kB
| { | |
| "positions": 96, | |
| "exact_matches": 96, | |
| "legal": 96, | |
| "outcomes": [ | |
| { | |
| "index": 0, | |
| "text": "H14", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 1, | |
| "text": "N6", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 2, | |
| "text": "K15", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 3, | |
| "text": "K11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 4, | |
| "text": "O7", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 5, | |
| "text": "K2", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 6, | |
| "text": "G12", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 7, | |
| "text": "M10", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 8, | |
| "text": "M1", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 9, | |
| "text": "N5", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 10, | |
| "text": "E9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 11, | |
| "text": "L9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 12, | |
| "text": "J11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 13, | |
| "text": "N9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 14, | |
| "text": "N6", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 15, | |
| "text": "J11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 16, | |
| "text": "M9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 17, | |
| "text": "E9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 18, | |
| "text": "J9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 19, | |
| "text": "D1", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 20, | |
| "text": "E12", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 21, | |
| "text": "J5", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 22, | |
| "text": "I9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 23, | |
| "text": "N13", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 24, | |
| "text": "F12", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 25, | |
| "text": "J14", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 26, | |
| "text": "M14", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 27, | |
| "text": "J6", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 28, | |
| "text": "M9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 29, | |
| "text": "I12", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 30, | |
| "text": "J5", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 31, | |
| "text": "G15", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 32, | |
| "text": "O9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 33, | |
| "text": "I9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 34, | |
| "text": "L15", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 35, | |
| "text": "M7", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 36, | |
| "text": "I11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 37, | |
| "text": "N4", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 38, | |
| "text": "J14", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 39, | |
| "text": "I12", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 40, | |
| "text": "N12", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 41, | |
| "text": "J9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 42, | |
| "text": "M11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 43, | |
| "text": "K10", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 44, | |
| "text": "J10", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 45, | |
| "text": "I10", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 46, | |
| "text": "I13", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 47, | |
| "text": "N15", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 48, | |
| "text": "M6", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 49, | |
| "text": "I11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 50, | |
| "text": "I3", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 51, | |
| "text": "J11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 52, | |
| "text": "E14", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 53, | |
| "text": "J14", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 54, | |
| "text": "M3", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 55, | |
| "text": "K1", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 56, | |
| "text": "K1", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 57, | |
| "text": "K11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 58, | |
| "text": "N11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 59, | |
| "text": "I6", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 60, | |
| "text": "O14", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 61, | |
| "text": "K10", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 62, | |
| "text": "K12", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 63, | |
| "text": "O6", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 512, | |
| "text": "J7", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 513, | |
| "text": "E12", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 514, | |
| "text": "E6", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 515, | |
| "text": "G7", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 516, | |
| "text": "G9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 517, | |
| "text": "H6", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 518, | |
| "text": "J8", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 519, | |
| "text": "K6", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 520, | |
| "text": "I8", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 521, | |
| "text": "H12", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 522, | |
| "text": "I5", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 523, | |
| "text": "H11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 524, | |
| "text": "H6", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 525, | |
| "text": "K5", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 526, | |
| "text": "H8", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 527, | |
| "text": "K9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 640, | |
| "text": "K11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 641, | |
| "text": "K5", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 642, | |
| "text": "J8", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 643, | |
| "text": "F9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 644, | |
| "text": "K10", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 645, | |
| "text": "F5", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 646, | |
| "text": "J11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 647, | |
| "text": "E11", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 648, | |
| "text": "K6", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 649, | |
| "text": "I8", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 650, | |
| "text": "F6", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 651, | |
| "text": "E10", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 652, | |
| "text": "H10", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 653, | |
| "text": "H9", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 654, | |
| "text": "K5", | |
| "legal": true, | |
| "exact": true | |
| }, | |
| { | |
| "index": 655, | |
| "text": "E8", | |
| "legal": true, | |
| "exact": true | |
| } | |
| ] | |
| } | |