Instructions to use thehosy/hsthe-1.4b-base-ckpt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thehosy/hsthe-1.4b-base-ckpt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="thehosy/hsthe-1.4b-base-ckpt") 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("thehosy/hsthe-1.4b-base-ckpt") model = AutoModelForCausalLM.from_pretrained("thehosy/hsthe-1.4b-base-ckpt", 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 thehosy/hsthe-1.4b-base-ckpt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "thehosy/hsthe-1.4b-base-ckpt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "thehosy/hsthe-1.4b-base-ckpt", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/thehosy/hsthe-1.4b-base-ckpt
- SGLang
How to use thehosy/hsthe-1.4b-base-ckpt 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 "thehosy/hsthe-1.4b-base-ckpt" \ --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": "thehosy/hsthe-1.4b-base-ckpt", "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 "thehosy/hsthe-1.4b-base-ckpt" \ --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": "thehosy/hsthe-1.4b-base-ckpt", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use thehosy/hsthe-1.4b-base-ckpt with Docker Model Runner:
docker model run hf.co/thehosy/hsthe-1.4b-base-ckpt
hsthe-1.4b-base
Model Overview
hsthe-1.4b-base là một mô hình ngôn ngữ lớn (LLM) nhỏ được huấn luyện từ đầu nhằm mục đích nghiên cứu và thử nghiệm quá trình pretraining một mô hình LLM. Việc xây dựng mô hình này giúp tác giả hiểu rõ hơn về pipeline huấn luyện, tối ưu hóa, và các thách thức trong việc phát triển LLM, từ đó dễ dàng áp dụng cho các mô hình quy mô lớn hơn trong tương lai.
Model Name: hsthe-1.4b-base
Architecture: Qwen3 (Dense)
Parameters:
- ~1.78B (mặc định)
- ~1.47B (nếu bật
tie_word_embeddings)
Context Length:
- Phase 1: 8192 tokens
- Phase 2: 32768 tokens (sử dụng YARN extension)
Training Data
Languages:
- Tiếng Việt: 66.67%
- Tiếng Anh: 33.33%
Datasets:
Dữ liệu đã được tiền xử lý và lọc để đảm bảo chất lượng và tính đa dạng, tập trung vào cả tiếng Việt và tiếng Anh.
Intended Use
- Nghiên cứu: phục vụ nghiên cứu quy trình huấn luyện LLM từ đầu.
- Học tập: hỗ trợ tìm hiểu các kỹ thuật pretraining, scaling law, tokenizer, và kiến trúc Transformer.
- Thử nghiệm: làm baseline nhỏ cho việc phát triển các hệ thống lớn hơn.
⚠️ Không nên sử dụng mô hình này cho sản phẩm thương mại hoặc các ứng dụng đòi hỏi độ tin cậy cao vì chưa qua fine-tuning hoặc alignment chuyên sâu.
Limitations & Risks
- Mô hình có thể sinh ra thông tin sai lệch hoặc không chính xác.
- Chưa được kiểm thử toàn diện về bias, fairness và toxicity.
- Hạn chế trong việc xử lý các ngôn ngữ ngoài tiếng Việt và tiếng Anh.
- Không được tối ưu cho downstream tasks (classification, summarization, code, v.v.).
Citation
Nếu bạn sử dụng mô hình này cho nghiên cứu, vui lòng trích dẫn như sau:
@misc{hsthe14bbase2025,
title = {hsthe-1.4b-base},
author = {Sỹ Thế Hồ},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/thehosy/hsthe-1.4b-base}}
}
- Downloads last month
- -