Instructions to use EBLANSoft/eblangpt1984 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use EBLANSoft/eblangpt1984 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="EBLANSoft/eblangpt1984", filename="eblangpt1984.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use EBLANSoft/eblangpt1984 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf EBLANSoft/eblangpt1984 # Run inference directly in the terminal: llama-cli -hf EBLANSoft/eblangpt1984
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf EBLANSoft/eblangpt1984 # Run inference directly in the terminal: llama-cli -hf EBLANSoft/eblangpt1984
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf EBLANSoft/eblangpt1984 # Run inference directly in the terminal: ./llama-cli -hf EBLANSoft/eblangpt1984
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf EBLANSoft/eblangpt1984 # Run inference directly in the terminal: ./build/bin/llama-cli -hf EBLANSoft/eblangpt1984
Use Docker
docker model run hf.co/EBLANSoft/eblangpt1984
- LM Studio
- Jan
- vLLM
How to use EBLANSoft/eblangpt1984 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EBLANSoft/eblangpt1984" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EBLANSoft/eblangpt1984", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EBLANSoft/eblangpt1984
- Ollama
How to use EBLANSoft/eblangpt1984 with Ollama:
ollama run hf.co/EBLANSoft/eblangpt1984
- Unsloth Studio new
How to use EBLANSoft/eblangpt1984 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for EBLANSoft/eblangpt1984 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for EBLANSoft/eblangpt1984 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for EBLANSoft/eblangpt1984 to start chatting
- Docker Model Runner
How to use EBLANSoft/eblangpt1984 with Docker Model Runner:
docker model run hf.co/EBLANSoft/eblangpt1984
- Lemonade
How to use EBLANSoft/eblangpt1984 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull EBLANSoft/eblangpt1984
Run and chat with the model
lemonade run user.eblangpt1984-{{QUANT_TAG}}List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf EBLANSoft/eblangpt1984# Run inference directly in the terminal:
llama-cli -hf EBLANSoft/eblangpt1984Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf EBLANSoft/eblangpt1984# Run inference directly in the terminal:
./llama-cli -hf EBLANSoft/eblangpt1984Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf EBLANSoft/eblangpt1984# Run inference directly in the terminal:
./build/bin/llama-cli -hf EBLANSoft/eblangpt1984Use Docker
docker model run hf.co/EBLANSoft/eblangpt1984🍅 EBLAN GPT 1984
Крошечная LLaMA-архитектура на 115K параметров, обученная на русском словаре словоформ.
Совместима с llama.cpp из коробки — архитектура llama, всё по спеке.
Это скорее демка того что можно обучить настоящий трансформер с нуля и экспортнуть в GGUF, чем полезная модель. Генерит морфологически правдоподобные псевдорусские слова.
Архитектура
| Параметр | Значение |
|---|---|
| Тип | LLaMA (RMSNorm + RoPE + SwiGLU + causal self-attention) |
| vocab | 256 (byte-level) |
| n_embd | 64 |
| n_layers | 2 |
| n_heads | 4 |
| head_dim | 16 |
| n_ff | 128 |
| context | 64 |
| параметров | 115,008 |
| размер | 468 KB (F32) |
Использование
llama.cpp
llama-completion -m eblangpt1984.gguf -p "программ" -n 200 --temp 0.7
Python (llama-cpp-python)
from llama_cpp import Llama
llm = Llama(model_path="eblangpt1984.gguf", n_ctx=64)
out = llm("программ", max_tokens=100, temperature=0.7)
print(out["choices"][0]["text"])
Пример вывода
Промпт программ при temp=0.7:
программою плапланную окоплежившему отмехальногичество
выконымпарваюшеннпруеках арлватлеганиа тууу стшнноурра маш
Модель поймала окончания русских слов (склонения, спряжения, причастия), но синтаксису и семантике не обучена — в датасете был только словарь, без связных предложений.
Обучение
Обучено на сабсете русского словаря словоформ (30 KB), 1000 шагов AdamW, batch=16, lr=3e-3. Лосс 5.7 → 0.89.
Код обучения: см. tiny_llama.py.
Переобучить на своих данных:
python tiny_llama.py train свой_текст.txt model.gguf 2000
Как улучшить
- Увеличить
N_EMBD=128,N_LAYERS=4,N_FF=256— будет ~1M параметров - Обучать на связной прозе (не только словарь) — появится хоть какая-то семантика
- Больше шагов (10K+) на большем датасете (несколько МБ)
Лицензия
Apache 2.0 — делай что хочешь.
- Downloads last month
- 60
We're not able to determine the quantization variants.
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf EBLANSoft/eblangpt1984# Run inference directly in the terminal: llama-cli -hf EBLANSoft/eblangpt1984