Salesforce/wikitext
Viewer β’ Updated β’ 3.71M β’ 1.33M β’ 690
How to use ViorikaAI/ViorikaLM-CHAT with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="ViorikaAI/ViorikaLM-CHAT") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("ViorikaAI/ViorikaLM-CHAT", dtype="auto")How to use ViorikaAI/ViorikaLM-CHAT with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "ViorikaAI/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": "ViorikaAI/ViorikaLM-CHAT",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/ViorikaAI/ViorikaLM-CHAT
How to use ViorikaAI/ViorikaLM-CHAT with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "ViorikaAI/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": "ViorikaAI/ViorikaLM-CHAT",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "ViorikaAI/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": "ViorikaAI/ViorikaLM-CHAT",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use ViorikaAI/ViorikaLM-CHAT with Docker Model Runner:
docker model run hf.co/ViorikaAI/ViorikaLM-CHAT
(discord https://discord.gg/DUzP7CXqJt)
This model is licensed under the MIT License.
π§ Experimental Under-Training Model (~250M parameters) based on a custom 12-layer/12-head Transformer architecture.
Primarily supports English π¬π§. This is my first model.
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.
wikitext-103-raw-v1 (or similar WikiText format)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))