Instructions to use 1-800-LLMs/tiny-aya-earth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 1-800-LLMs/tiny-aya-earth with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="1-800-LLMs/tiny-aya-earth") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("1-800-LLMs/tiny-aya-earth") model = AutoModelForCausalLM.from_pretrained("1-800-LLMs/tiny-aya-earth") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use 1-800-LLMs/tiny-aya-earth with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "1-800-LLMs/tiny-aya-earth" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "1-800-LLMs/tiny-aya-earth", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/1-800-LLMs/tiny-aya-earth
- SGLang
How to use 1-800-LLMs/tiny-aya-earth 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 "1-800-LLMs/tiny-aya-earth" \ --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": "1-800-LLMs/tiny-aya-earth", "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 "1-800-LLMs/tiny-aya-earth" \ --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": "1-800-LLMs/tiny-aya-earth", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use 1-800-LLMs/tiny-aya-earth with Docker Model Runner:
docker model run hf.co/1-800-LLMs/tiny-aya-earth
Upload signatures/verification-instructions.txt with huggingface_hub
Browse files
signatures/verification-instructions.txt
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
====================================
|
| 2 |
+
MODEL SIGNATURE VERIFICATION GUIDE
|
| 3 |
+
====================================
|
| 4 |
+
|
| 5 |
+
Model: CohereLabs/tiny-aya-earth
|
| 6 |
+
Revision: main
|
| 7 |
+
Environment: PRODUCTION
|
| 8 |
+
Signed at: 2025-10-27T18:55:09Z
|
| 9 |
+
Workflow Run: https://github.com/cohere-ai/model-signing/actions/runs/22342038723
|
| 10 |
+
|
| 11 |
+
TRANSPARENCY LOG
|
| 12 |
+
----------------
|
| 13 |
+
This signature is recorded in the Sigstore Rekor transparency log.
|
| 14 |
+
|
| 15 |
+
Rekor Entry: https://search.sigstore.dev/?logIndex=984891520
|
| 16 |
+
Log Index: 984891520
|
| 17 |
+
Identity: https://github.com/cohere-ai/model-signing/.github/workflows/sign-model.yml@refs/heads/main
|
| 18 |
+
|
| 19 |
+
VERIFICATION
|
| 20 |
+
------------
|
| 21 |
+
To verify this signature locally:
|
| 22 |
+
|
| 23 |
+
1. Install the model-signing package:
|
| 24 |
+
pip install model-signing
|
| 25 |
+
|
| 26 |
+
2. Install huggingface_hub and download the model:
|
| 27 |
+
pip install huggingface_hub
|
| 28 |
+
huggingface-cli download CohereLabs/tiny-aya-earth --revision main --local-dir ./model
|
| 29 |
+
|
| 30 |
+
3. Verify the signature:
|
| 31 |
+
model_signing verify ./model \
|
| 32 |
+
--signature tiny-aya-earth.sig \
|
| 33 |
+
--identity "https://github.com/cohere-ai/model-signing/.github/workflows/sign-model.yml@refs/heads/main" \
|
| 34 |
+
--identity_provider "https://token.actions.githubusercontent.com" \
|
| 35 |
+
--ignore_unsigned_files
|
| 36 |
+
|
| 37 |
+
Note: This signature was created with selective file inclusion (*.safetensors,*.bin,*.json,*.txt,*.model,*.yaml,*.yml).
|
| 38 |
+
Use --ignore_unsigned_files to verify only the files that were signed.
|
| 39 |
+
|
| 40 |
+
====================================
|