Text Generation
Transformers
Safetensors
English
llama
nanodex
tiny-lm
pretrained-from-scratch
text-generation-inference
Instructions to use GGUFGuy/useless-parameters-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GGUFGuy/useless-parameters-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GGUFGuy/useless-parameters-2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GGUFGuy/useless-parameters-2") model = AutoModelForCausalLM.from_pretrained("GGUFGuy/useless-parameters-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GGUFGuy/useless-parameters-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GGUFGuy/useless-parameters-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GGUFGuy/useless-parameters-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/GGUFGuy/useless-parameters-2
- SGLang
How to use GGUFGuy/useless-parameters-2 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 "GGUFGuy/useless-parameters-2" \ --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": "GGUFGuy/useless-parameters-2", "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 "GGUFGuy/useless-parameters-2" \ --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": "GGUFGuy/useless-parameters-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use GGUFGuy/useless-parameters-2 with Docker Model Runner:
docker model run hf.co/GGUFGuy/useless-parameters-2
Download meta.json from GGUFGuy/useless-parameters-2: direct link, hf CLI and curl.
- Browser
- Download file 1.63 kB
-
https://huggingface.co/GGUFGuy/useless-parameters-2/resolve/main/meta.json
- Command line
-
hf download hf://GGUFGuy/useless-parameters-2/meta.json
-
curl -L -o meta.json https://huggingface.co/GGUFGuy/useless-parameters-2/resolve/main/meta.json
1.63 kB
| { | |
| "job": { | |
| "id": "7eeb3d24bff1", | |
| "username": "GGUFGuy", | |
| "display_name": "The Supreme GGUF-SafeTensors Guy", | |
| "avatar_url": "https://huggingface.co/avatars/93483e75931a17248e287bf0fc9988e1.svg", | |
| "model_name": "useless-parameters-2", | |
| "tier": "gpt2-small", | |
| "n_params": 114838272, | |
| "target_tokens": 1, | |
| "status": "done", | |
| "gpu_index": 0, | |
| "created_at": 1790151367.7688372, | |
| "started_at": 1790151369.3973322, | |
| "finished_at": 1790154841.6148906, | |
| "tokens_seen": 524288, | |
| "step": 1, | |
| "total_steps": 1, | |
| "loss": 8.28871063515544, | |
| "best_loss": 8.28871063515544, | |
| "lr": 0.0003, | |
| "tok_per_s": 151.71700978123224, | |
| "eta_s": 0.0, | |
| "error": null, | |
| "pushed_repo": null, | |
| "seed": 51367, | |
| "live_step": 0, | |
| "live_at": 1790154840.8954425 | |
| }, | |
| "metrics": [ | |
| { | |
| "step": 0, | |
| "tokens": 524288, | |
| "loss": 8.28871063515544, | |
| "lr": 0.0003 | |
| } | |
| ], | |
| "logs": [ | |
| { | |
| "t": 1790151367.770284, | |
| "line": "queued by @GGUFGuy" | |
| }, | |
| { | |
| "t": 1790151369.3981106, | |
| "line": "starting on cpu" | |
| }, | |
| { | |
| "t": 1790151385.1950784, | |
| "line": "model: GPT-2 Small \u00b7 114,838,272 parameters \u00b7 device=cpu" | |
| }, | |
| { | |
| "t": 1790151385.196413, | |
| "line": "batch: 4 seq x 512 tok x 256 accum = 524,288 tokens/step \u00b7 1 steps" | |
| }, | |
| { | |
| "t": 1790154840.9857323, | |
| "line": "step 0/1 \u00b7 loss 8.2887 \u00b7 ppl 3978.7 \u00b7 lr 3.00e-04 \u00b7 0k tok/s \u00b7 ETA -57.6 min" | |
| }, | |
| { | |
| "t": 1790154840.9865046, | |
| "line": "saving checkpoint..." | |
| } | |
| ], | |
| "schema": 1 | |
| } |