Text Generation
Transformers
TensorBoard
ONNX
Safetensors
llama
Generated from Trainer
conversational
text-generation-inference
Instructions to use hypaai/hypa-tiny-keys with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hypaai/hypa-tiny-keys with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hypaai/hypa-tiny-keys") 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("hypaai/hypa-tiny-keys") model = AutoModelForCausalLM.from_pretrained("hypaai/hypa-tiny-keys", 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 hypaai/hypa-tiny-keys with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hypaai/hypa-tiny-keys" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hypaai/hypa-tiny-keys", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hypaai/hypa-tiny-keys
- SGLang
How to use hypaai/hypa-tiny-keys 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 "hypaai/hypa-tiny-keys" \ --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": "hypaai/hypa-tiny-keys", "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 "hypaai/hypa-tiny-keys" \ --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": "hypaai/hypa-tiny-keys", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use hypaai/hypa-tiny-keys with Docker Model Runner:
docker model run hf.co/hypaai/hypa-tiny-keys
Commit History
20 days ago
-
Model save
Verified signature63f36ac -
Training in progress, step 183476
Verified signature66cfada -
Training in progress, step 178893
Verified signature60c23fb -
Training in progress, step 174306
Verified signaturedfa5c0e -
Training in progress, step 169719
Verified signatureb73ad7d -
Training in progress, step 165132
Verified signaturebb4234a -
Training in progress, step 160545
Verified signature4ae890e
21 days ago
-
Training in progress, step 155958
Verified signature58f3b30 -
Training in progress, step 151371
Verified signature88667fe -
Training in progress, step 146784
Verified signatureb37e993 -
Training in progress, step 142197
Verified signature874a63b -
Training in progress, step 137610
Verified signatureb7cf8e3 -
Training in progress, step 133023
Verified signature9370dca -
Training in progress, step 128436
Verified signature7ff66b4 -
Training in progress, step 123849
Verified signature6ffd920 -
Training in progress, step 119262
Verified signature0e3c758 -
Training in progress, step 114675
Verified signature7f3f290 -
Training in progress, step 110088
Verified signature208d683
22 days ago
-
Training in progress, step 105501
Verified signature434897a -
Training in progress, step 100914
Verified signatureca9f460 -
Training in progress, step 96327
Verified signature14b57ca -
Training in progress, step 91740
Verified signature8c8c3e0 -
Training in progress, step 87153
Verified signaturea67c4c6 -
Training in progress, step 82566
Verified signature7af0c4d -
Training in progress, step 77979
Verified signature71d0099 -
Training in progress, step 73392
Verified signaturefd6d2cc -
Training in progress, step 68805
Verified signaturefb49b46 -
Training in progress, step 64218
Verified signatured820699 -
Training in progress, step 59631
Verified signature03b1e79 -
Training in progress, step 55044
Verified signaturec9ca917
23 days ago
-
Training in progress, step 50457
Verified signatureb0472ce -
Training in progress, step 45870
Verified signature8bb8d4f -
Training in progress, step 41283
Verified signature7d0959c -
Training in progress, step 36696
Verified signaturee2d5a0b -
Training in progress, step 32109
Verified signature6888e82 -
Training in progress, step 27522
Verified signature8abcf2b -
Training in progress, step 22935
Verified signature2b70ac6 -
Training in progress, step 18348
Verified signature7d3b5c8 -
Training in progress, step 13761
Verified signature12569a9 -
Training in progress, step 9174
Verified signature4b9a7a5 -
Training in progress, step 4587
Verified signature9a7bfc0