Instructions to use SatoshiManjoro/MiniManjoro-25M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- RWKV
How to use SatoshiManjoro/MiniManjoro-25M with RWKV:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use SatoshiManjoro/MiniManjoro-25M 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 SatoshiManjoro/MiniManjoro-25M # Run inference directly in the terminal: llama cli -hf SatoshiManjoro/MiniManjoro-25M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SatoshiManjoro/MiniManjoro-25M # Run inference directly in the terminal: llama cli -hf SatoshiManjoro/MiniManjoro-25M
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 SatoshiManjoro/MiniManjoro-25M # Run inference directly in the terminal: ./build/bin/llama cli -hf SatoshiManjoro/MiniManjoro-25M
Use Docker
docker model run hf.co/SatoshiManjoro/MiniManjoro-25M
- Llama new
- LM Studio
- Jan
- vLLM
How to use SatoshiManjoro/MiniManjoro-25M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SatoshiManjoro/MiniManjoro-25M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SatoshiManjoro/MiniManjoro-25M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SatoshiManjoro/MiniManjoro-25M
- Ollama
How to use SatoshiManjoro/MiniManjoro-25M with Ollama:
ollama run hf.co/SatoshiManjoro/MiniManjoro-25M
- Unsloth Desktop
- Docker Model Runner
How to use SatoshiManjoro/MiniManjoro-25M with Docker Model Runner:
docker model run hf.co/SatoshiManjoro/MiniManjoro-25M
- Lemonade
How to use SatoshiManjoro/MiniManjoro-25M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SatoshiManjoro/MiniManjoro-25M
Run and chat with the model
lemonade run user.MiniManjoro-25M-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Download chat.py from SatoshiManjoro/MiniManjoro-25M: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/SatoshiManjoro/MiniManjoro-25M/resolve/main/chat.py
- Command line
-
hf download hf://SatoshiManjoro/MiniManjoro-25M/chat.py
-
curl -L -o chat.py https://huggingface.co/SatoshiManjoro/MiniManjoro-25M/resolve/main/chat.py
1.44 kB
| # chat.py | |
| import torch | |
| from tokenizers import Tokenizer | |
| from model import RWKV7 | |
| torch.set_num_threads(4) | |
| tok = Tokenizer.from_file("tok.json") | |
| EOS = tok.token_to_id("<|eos|>") | |
| model = RWKV7() | |
| model.load_state_dict(torch.load("ckpt.pt")["model"]) | |
| model.eval() | |
| def answer(q, max_new=100, temp=0.75, top_k=40, rep_penalty=1.2): | |
| ids = tok.encode(f"Вопрос: {q}\nОтвет:").ids | |
| logits, _, st = model(torch.tensor([ids]), state=[None] * len(model.blocks)) | |
| out = [] | |
| for _ in range(max_new): | |
| l = logits[0, -1] / temp | |
| # Штраф за зацикливание и повторение недавних токенов | |
| for prev in set(out[-25:]): | |
| l[prev] = l[prev] / rep_penalty if l[prev] > 0 else l[prev] * rep_penalty | |
| v, _ = torch.topk(l, top_k) | |
| l[l < v[-1]] = -float("inf") | |
| nxt = torch.multinomial(torch.softmax(l, -1), 1).item() | |
| if nxt == EOS: break | |
| out.append(nxt) | |
| decoded = tok.decode(out) | |
| if "\nВопрос:" in decoded: break | |
| logits, _, st = model(torch.tensor([[nxt]]), state=st) | |
| return tok.decode(out).split("\nВопрос:")[0].strip() | |
| print("MiniManjoro-25M готов к общению! Напишите вопрос или 'exit':") | |
| while True: | |
| q = input("\nВы: ") | |
| if not q or q.lower() == "exit": break | |
| print("Модель:", answer(q)) |