OpenAI-gpt2 series
Collection
GGUF quantized OpenAI GPT-2 series • 3 items • Updated
How to use aisuko/gpt2-xl-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="aisuko/gpt2-xl-gguf", filename="gpt2-xl-Q4_K_M-v2.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
How to use aisuko/gpt2-xl-gguf with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf aisuko/gpt2-xl-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf aisuko/gpt2-xl-gguf:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf aisuko/gpt2-xl-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf aisuko/gpt2-xl-gguf:Q4_K_M
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf aisuko/gpt2-xl-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf aisuko/gpt2-xl-gguf:Q4_K_M
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf aisuko/gpt2-xl-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf aisuko/gpt2-xl-gguf:Q4_K_M
docker model run hf.co/aisuko/gpt2-xl-gguf:Q4_K_M
How to use aisuko/gpt2-xl-gguf with Ollama:
ollama run hf.co/aisuko/gpt2-xl-gguf:Q4_K_M
How to use aisuko/gpt2-xl-gguf with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for aisuko/gpt2-xl-gguf to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for aisuko/gpt2-xl-gguf to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for aisuko/gpt2-xl-gguf to start chatting
How to use aisuko/gpt2-xl-gguf with Docker Model Runner:
docker model run hf.co/aisuko/gpt2-xl-gguf:Q4_K_M
How to use aisuko/gpt2-xl-gguf with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull aisuko/gpt2-xl-gguf:Q4_K_M
lemonade run user.gpt2-xl-gguf-Q4_K_M
lemonade list
system_info: n_threads = 4 / 8 | AVX = 1 | AVX_VNNI = 1 | AVX2 = 1 | AVX512 = 1 | AVX512_VBMI = 1 | AVX512_VNNI = 1 | AVX512_BF16 = 1 | FMA = 1 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 1 |
main: interactive mode on.
Reverse prompt: 'User:'
sampling:
repeat_last_n = 64, repeat_penalty = 1.000, frequency_penalty = 0.000, presence_penalty = 0.000
top_k = 40, tfs_z = 1.000, top_p = 0.950, min_p = 0.050, typical_p = 1.000, temp = 0.800
mirostat = 0, mirostat_lr = 0.100, mirostat_ent = 5.000
sampling order:
CFG -> Penalties -> top_k -> tfs_z -> typical_p -> top_p -> min_p -> temperature
generate: n_ctx = 1024, n_batch = 2048, n_predict = 256, n_keep = 0
== Running in interactive mode. ==
- Press Ctrl+C to interject at any time.
- Press Return to return control to the AI.
- To return control without starting a new line, end your input with '/'.
- If you want to submit another line, end your input with '\'.
Transcript of a dialog, where the User interacts with an Assistant named Bob. Bob is helpful, kind, honest, good at writing, and never fails to answer the User's requests immediately and with precision.
User: Hello, Bob.
Bob: Hello. How may I help you today?
User: Please tell me the largest city in Europe.
Bob: Sure. The largest city in Europe is Moscow, the capital of Russia.
User:What is the largest city in Australia?
Bob: The largest city in Australia is Melbourne, the capital of Victoria.
User:What is the largest city in US
Bob: The largest city in US is Los Angeles, the capital of California.
User:thanks
Bob:Thanks for calling.
Bob is not a robot, and may be a human being who is not a robot. Bob is an Assistant that is helpful, kind, honest, good at writing and never fails to answer the User's requests.
User:
llama_print_timings: load time = 227.51 ms
llama_print_timings: sample time = 3.31 ms / 97 runs ( 0.03 ms per token, 29269.76 tokens per second)
llama_print_timings: prompt eval time = 29632.23 ms / 116 tokens ( 255.45 ms per token, 3.91 tokens per second)
llama_print_timings: eval time = 4239.84 ms / 94 runs ( 45.10 ms per token, 22.17 tokens per second)
llama_print_timings: total time = 76118.37 ms / 210 tokens
4-bit