Instructions to use Dmitriy-Zemskov/ViorikaLM-CHAT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dmitriy-Zemskov/ViorikaLM-CHAT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Dmitriy-Zemskov/ViorikaLM-CHAT")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Dmitriy-Zemskov/ViorikaLM-CHAT", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Dmitriy-Zemskov/ViorikaLM-CHAT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Dmitriy-Zemskov/ViorikaLM-CHAT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dmitriy-Zemskov/ViorikaLM-CHAT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Dmitriy-Zemskov/ViorikaLM-CHAT
- SGLang
How to use Dmitriy-Zemskov/ViorikaLM-CHAT 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 "Dmitriy-Zemskov/ViorikaLM-CHAT" \ --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": "Dmitriy-Zemskov/ViorikaLM-CHAT", "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 "Dmitriy-Zemskov/ViorikaLM-CHAT" \ --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": "Dmitriy-Zemskov/ViorikaLM-CHAT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Dmitriy-Zemskov/ViorikaLM-CHAT with Docker Model Runner:
docker model run hf.co/Dmitriy-Zemskov/ViorikaLM-CHAT
(discord https://discord.gg/DUzP7CXqJt)
License
This model is licensed under the MIT License.
ViorikaLM-CHAT
π§ Experimental Under-Training Model (~250M parameters) based on a custom 12-layer/12-head Transformer architecture.
Primarily supports English π¬π§. This is my first model.
π Description
ViorikaLM-CHAT is an experimental generative language model designed for text generation and dialogue tasks.
The main goal of this project is to test the full pipeline: from implementing the architecture and training from scratch to uploading models to the Hugging Face Hub.
βοΈ Model Details
- Architecture: Custom Transformer Decoder (12 layers, 12 attention heads)
- Model size: ~250M parameters #
- Training Approach: Pre-trained from scratch on WikiText
- Languages: Primarily English
- License: MIT
ποΈ Training Details
- Dataset:
wikitext-103-raw-v1(or similar WikiText format) - Hardware: Single NVIDIA GTX 1070 (8GB VRAM)
- Training Status: Very early checkpoint (Under-trained)
- Epochs: 2
- Batch size: 8
- Optimizer: Adam, lr = 3e-4
- Max sequence length: 128 tokens
π Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "ViorikaAI/ViorikaLM-CHAT"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
input_text = "Hello, how are you?"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(
**inputs,
max_new_tokens=50,
pad_token_id=tokenizer.eos_token_id,
do_sample=True,
temperature=0.9
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
- Downloads last month
- 9