Text Generation
Transformers
Safetensors
English
Korean
lfm2_moe
terminal
sft
vllm
tb2-lite
evaluation-pending
conversational
Instructions to use LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU") model = AutoModelForCausalLM.from_pretrained("LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU
- SGLang
How to use LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU 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 "LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU" \ --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": "LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU", "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 "LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU" \ --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": "LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU with Docker Model Runner:
docker model run hf.co/LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU
Update model card with pending TB2-lite evaluation status
Browse files
README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- ko
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- terminal
|
| 9 |
+
- sft
|
| 10 |
+
- vllm
|
| 11 |
+
- tb2-lite
|
| 12 |
+
- evaluation-pending
|
| 13 |
+
base_model: LiquidAI/LFM2-8B
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# LLM-OS-Models/LFM2-8B-Terminal-SFT-2Epoch-Unsloth-7GPU
|
| 17 |
+
|
| 18 |
+
ํฐ๋ฏธ๋ ์์
์๋ํ๋ฅผ ์ํ Terminal SFT ๋ชจ๋ธ์
๋๋ค. ์
๋ ฅ๋ ์์
/์ด์ ํฐ๋ฏธ๋ ์ํ๋ฅผ ๋ณด๊ณ ๋ค์์ ์คํํ ๋ช
๋ น์ JSON ํํ๋ก ์์ฑํ๋ ์ฉ๋๋ก ํ์ตํ์ต๋๋ค.
|
| 19 |
+
|
| 20 |
+
## ๋ชจ๋ธ ์์ฝ
|
| 21 |
+
|
| 22 |
+
- Base model: `LiquidAI/LFM2-8B`
|
| 23 |
+
- Training setup: `2 epochs, Unsloth SFT`
|
| 24 |
+
- Model card snapshot: `2026-05-08 16:04:13 UTC`
|
| 25 |
+
- Corrected TB2-lite evaluated results currently indexed: `56`
|
| 26 |
+
- Corrected TB2-lite score: `pending / not matched in current result directory`
|
| 27 |
+
|
| 28 |
+
## ํ๊ฐ ์ํ
|
| 29 |
+
|
| 30 |
+
- Current corrected TB2-lite score: `pending`
|
| 31 |
+
- Reason: ํ์ฌ `/home/work/.data/tb2_lite_eval/corrected_readme_models_vllm` ์ง๊ณ ๊ฒฐ๊ณผ์ ์ด HF repo๋ช
์ด ์ง์ ๋งค์นญ๋์ง ์์์ต๋๋ค.
|
| 32 |
+
- Next step: ๋์ผํ `tb2_lite/scripts/replay_eval.py` ๊ฒฝ๋ก๋ก ํ๊ฐ๋ฅผ ๋๋ฆฐ ๋ค ์ ์ ์นด๋๋ก ์๋ ๊ต์ฒดํฉ๋๋ค.
|
| 33 |
+
|
| 34 |
+
## ๋ชจ๋ธ๊ตฐ ํด์
|
| 35 |
+
|
| 36 |
+
- LFM ๊ณ์ด์ ๋น ๋ฅธ sec/step๊ณผ ํฐ SFT ๋ฐ์์ฑ์ด ์ฅ์ ์
๋๋ค. ์ด repo๋ ์์ง ํ์ฌ ์ง๊ณ JSON๊ณผ ์ง์ ๋งค์นญ๋๋ ์ ์๊ฐ ์์ด ๋ณ๋ ํ๊ฐ๊ฐ ํ์ํฉ๋๋ค.
|
| 37 |
+
- TB2-lite ์ ์๋ ์ผ๋ฐ ์ง๋ฅ ๋ฒค์น๋งํฌ๊ฐ ์๋๋ผ ํฐ๋ฏธ๋ next-action JSON ์ฌํ ๋ฅ๋ ฅ์ ์ธก์ ํฉ๋๋ค.
|
| 38 |
+
- ์์ฑ ๋ช
๋ น์ ์ค์ ์คํ ์ ์ sandbox, allowlist, human review ๊ฐ์ ์์ ์ฅ์น๋ฅผ ๊ฑฐ์ณ์ผ ํฉ๋๋ค.
|