Instructions to use BeardedMonster/csw-rl 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 BeardedMonster/csw-rl 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 BeardedMonster/csw-rl:Q8_0 # Run inference directly in the terminal: llama cli -hf BeardedMonster/csw-rl:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf BeardedMonster/csw-rl:Q8_0 # Run inference directly in the terminal: llama cli -hf BeardedMonster/csw-rl:Q8_0
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 BeardedMonster/csw-rl:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf BeardedMonster/csw-rl:Q8_0
Use Docker
docker model run hf.co/BeardedMonster/csw-rl:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use BeardedMonster/csw-rl with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BeardedMonster/csw-rl" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BeardedMonster/csw-rl", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BeardedMonster/csw-rl:Q8_0
- Ollama
How to use BeardedMonster/csw-rl with Ollama:
ollama run hf.co/BeardedMonster/csw-rl:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use BeardedMonster/csw-rl with Docker Model Runner:
docker model run hf.co/BeardedMonster/csw-rl:Q8_0
- Lemonade
How to use BeardedMonster/csw-rl with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull BeardedMonster/csw-rl:Q8_0
Run and chat with the model
lemonade run user.csw-rl-Q8_0
List all available models
lemonade list
- Atomic Chat
Upload evaluator/code/predict_segments.py with huggingface_hub
Browse files123456789101112131415161718192021222324"""M1..M6 (all 27 outputs) of evaluator runs on (english, translation) segments. python -m qe.predict_segments --runs v3=runs/v3 cft2b=runs/cft2b --segments ssa300.jsonl --out preds_ssa300.json [--grader strict|std]"""import argparse, json, sysfrom pathlib import Pathsys.path[:0] = [str(Path(__file__).resolve().parent.parent)]from qe import qe_lib as Q
def main(): ap = argparse.ArgumentParser(); ap.add_argument("--runs", nargs="+", required=True); ap.add_argument("--segments", required=True); ap.add_argument("--out", required=True); ap.add_argument("--graders", nargs="+", default=["strict", "std"]); a = ap.parse_args() import torch from transformers import AutoTokenizer segs = [json.loads(l) for l in open(a.segments, encoding="utf-8")]; res = {"ids": [s["id"] for s in segs], "runs": {}} for name, d in (x.split("=", 1) for x in a.runs): meta = json.load(open(Path(d) / "meta.json")); tok = AutoTokenizer.from_pretrained(d); enc = Q.Enc(tok); enc.grader = bool(meta.get("grader_tag")); model = Q.build_model(meta["model"]).cuda(); model.load_state_dict(torch.load(Path(d) / "best.pt", map_location="cuda")) for g in (a.graders if enc.grader else ["-"]): enc.default_grader = g if g != "-" else "std" items = [enc.encode("eng_m", {"lang": s["lang"], "pin": ""}, s["eng"], s["mt"], "") for s in segs]; P = Q.predict(model, enc, items, "cuda", bs=64) res["runs"][f"{name}|{g}"] = P.tolist() del model; torch.cuda.empty_cache() json.dump(res, open(a.out, "w")); print("wrote", a.out, list(res["runs"]))
if __name__ == "__main__": main()evaluator/code/predict_segments.pyAdded+24