Text Generation
Transformers
Safetensors
English
llama
slm
tiny
tinyllama
conversational
text-generation-inference
Instructions to use venkycs/Zyte-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use venkycs/Zyte-1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="venkycs/Zyte-1B") 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("venkycs/Zyte-1B") model = AutoModelForCausalLM.from_pretrained("venkycs/Zyte-1B", 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 venkycs/Zyte-1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "venkycs/Zyte-1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "venkycs/Zyte-1B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/venkycs/Zyte-1B
- SGLang
How to use venkycs/Zyte-1B 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 "venkycs/Zyte-1B" \ --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": "venkycs/Zyte-1B", "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 "venkycs/Zyte-1B" \ --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": "venkycs/Zyte-1B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use venkycs/Zyte-1B with Docker Model Runner:
docker model run hf.co/venkycs/Zyte-1B
Commit History
-
Update README.md
Verified signatureac68485 -
Update README.md
Verified signature2867b82
-
Upload model.safetensors
Verified signature6c2b31e -
Upload tokenizer
Verified signature6b37d5d -
Upload LlamaForCausalLM
Verified signature32964ac
-
Upload tokenizer.model
Verified signature45f2d53 -
Update README.md
Verified signature7d8c6e2 -
Update README.md
Verified signatureade60a7 -
Upload inference_zyte_1b.ipynb
Verified signature08a4b00 -
Update README.md
Verified signature2afd3e8 -
Update README.md
Verified signature9718a71 -
Upload Zyte.png
Verified signaturebf8b9cd -
Update README.md
Verified signature1501334 -
Update README.md
Verified signature9d9b636 -
Upload Zyte.png
Verified signature72ca783 -
Update README.md
Verified signature4cb67cb
-
Upload tokenizer
Verified signature5aca53c -
Upload LlamaForCausalLM
Verified signaturea02f98e -
Upload tokenizer
Verified signature4537b28 -
Upload LlamaForCausalLM
Verified signature739a89c
-
Update README.md
Verified signature4da08ea -
Update README.md
Verified signaturecd3b995 -
Update README.md
Verified signature08c7629 -
Update README.md
Verified signature7e31d0b -
Update README.md
Verified signature3280bba -
Update README.md
Verified signatured62cca4 -
Update README.md
Verified signature3d4e61b -
Upload tokenizer
Verified signatureea7391d -
Upload LlamaForCausalLM
Verified signature1821fe9 -
initial commit
Verified signatureebaed30