Instructions to use Quazim0t0/Anti-DEGR-Toolkit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Quazim0t0/Anti-DEGR-Toolkit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Quazim0t0/Anti-DEGR-Toolkit")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Quazim0t0/Anti-DEGR-Toolkit", device_map="auto") - PEFT
How to use Quazim0t0/Anti-DEGR-Toolkit with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Quazim0t0/Anti-DEGR-Toolkit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Quazim0t0/Anti-DEGR-Toolkit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Quazim0t0/Anti-DEGR-Toolkit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Quazim0t0/Anti-DEGR-Toolkit
- SGLang
How to use Quazim0t0/Anti-DEGR-Toolkit 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 "Quazim0t0/Anti-DEGR-Toolkit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Quazim0t0/Anti-DEGR-Toolkit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Quazim0t0/Anti-DEGR-Toolkit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Quazim0t0/Anti-DEGR-Toolkit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Quazim0t0/Anti-DEGR-Toolkit with Docker Model Runner:
docker model run hf.co/Quazim0t0/Anti-DEGR-Toolkit
Commit History
-
Rewrite as public Anti-DEGR ToolKit: HF tokenizer fallback, usage guide, local scripts
Verified signature131574e
-
remove accidentally uploaded __pycache__
Verified signature4a07c29 -
Anti-DEGR: add R (near-duplicate repetition)
Verified signatureNew: near_repetition.py R detector (rep_rate / distinct_n / report) + DRY sampler anti_repeat.py Stage R FTPO harvest (same loss, LoRA and pair schema as Stage A) README: DEG -> DEGR, Stage R methodology (measure -> decode -> train). Measured basis: on 16 generations from the Mark2.8Final Space engine, all visibly repetitive, find_inner_repetition flags 0/16 while rep_rate flags 9/16 (5 clean controls score 0.00). D is an exact cycle; R is self-paraphrase. The 0% loop figures in the results table were measured with the cycle detector alone and are noted as detector-limited. Also recorded: echo rate is length-dependent (8Final, same held-out bank, 7.0% at 80 new tokens vs 15.0% at 1000).72701ca
-
Anti-DEG toolkit: full pipeline, docs, licences
Verified signature07660b4 -
initial commit
Verified signaturede935ad