Text Generation
Transformers
Safetensors
English
llama
qlora
smollm
360m
cross-domain-transfer
anime-isomorphism
fine-tuned
conversational
text-generation-inference
Instructions to use CatQualia/gnarp-m2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CatQualia/gnarp-m2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CatQualia/gnarp-m2") 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("CatQualia/gnarp-m2") model = AutoModelForCausalLM.from_pretrained("CatQualia/gnarp-m2", 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
- vLLM
How to use CatQualia/gnarp-m2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CatQualia/gnarp-m2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CatQualia/gnarp-m2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CatQualia/gnarp-m2
- SGLang
How to use CatQualia/gnarp-m2 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 "CatQualia/gnarp-m2" \ --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": "CatQualia/gnarp-m2", "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 "CatQualia/gnarp-m2" \ --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": "CatQualia/gnarp-m2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use CatQualia/gnarp-m2 with Docker Model Runner:
docker model run hf.co/CatQualia/gnarp-m2
Commit History
-
Declare the model's licence as COPL v1.0 (was csil-3.0, which is the corpus licence)
Verified signature889249b -
Correct training-data claims: 69,945 trained rows, negatives excluded, no failure_class field; refusal rate unmeasured
Verified signaturee7d54da
-
Upload README.md with huggingface_hub
Verified signatureafc7efa -
Upload folder using huggingface_hub
Verified signature6ff5e70
-
Delete IP_NOTICE.md
Verified signature5324a04
-
Update IP_NOTICE.md
Verified signature0c934a7
-
Update IP_NOTICE.md
Verified signature9d38a31 -
Update results/training_log_summary.md
Verified signature1adf8df -
Update results/model_card.md
Verified signature4f0752c
-
Update IP_NOTICE.md
Verified signatureacd94bf -
Update IP_NOTICE.md
Verified signature14aa3c2 -
Rename MODEL_CARD.md to README.md
Verified signaturefc737f2 -
Update IP_NOTICE.md
Verified signature016e694 -
Update IP_NOTICE.md
Verified signature4141ec4 -
Update IP_NOTICE.md
Verified signature9270812
-
Update IP_NOTICE.md
Verified signature40fdf40 -
Update IP_NOTICE.md
Verified signature361689f -
Update IP_NOTICE.md
Verified signature7e4bc0a -
Update IP_NOTICE.md
Verified signature450e8f1 -
Update IP_NOTICE.md
Verified signatureed0abed -
Create IP_NOTICE.md
Verified signature1492266 -
Create self_falsifying_orchestrator.py
Verified signature08d684e
-
Update MODEL_CARD.md
Verified signature1e4eeef
-
Add results: transfer_benchmark_v2.json
Verified signature4a693cd -
Add results: model_card.md
Verified signatured4bfdee -
Add results: comparison_table.md
Verified signaturebc3e07a -
Add results: training_log_summary.md
Verified signatureb0fb63c -
Add training config
Verified signature79dc809 -
Add transfer benchmark v2 results
Verified signatureab54089 -
Upload gnarp-m2 merged model (QLoRA r=16 on SmolLM2-360M-Instruct, 74k rows)
Verified signatureb8fb095 -
initial commit
Verified signature760892d