Text Generation
Transformers
Safetensors
GGUF
Turkish
gemma3_text
turkish
türkiye
english
ai
lamapi
gemma3
next
next-x1
efficient
open-source
1b
270m
finetune
huggingface
large-language-model
llm
causal
transformer
artificial-intelligence
machine-learning
ai-research
natural-language-processing
nlp
finetuned
lightweight
creative
summarization
question-answering
chat-model
generative-ai
optimized-model
unsloth
trl
sft
chemistry
biology
finance
legal
music
art
code
climate
medical
agent
text-generation-inference
conversational
Instructions to use thelamapi/next-270m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thelamapi/next-270m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="thelamapi/next-270m") 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("thelamapi/next-270m") model = AutoModelForCausalLM.from_pretrained("thelamapi/next-270m", 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
- llama.cpp
How to use thelamapi/next-270m with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf thelamapi/next-270m:F16 # Run inference directly in the terminal: llama cli -hf thelamapi/next-270m:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf thelamapi/next-270m:F16 # Run inference directly in the terminal: llama cli -hf thelamapi/next-270m:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf thelamapi/next-270m:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf thelamapi/next-270m:F16
Use Docker
docker model run hf.co/thelamapi/next-270m:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use thelamapi/next-270m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "thelamapi/next-270m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "thelamapi/next-270m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/thelamapi/next-270m:F16
- SGLang
How to use thelamapi/next-270m 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 "thelamapi/next-270m" \ --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": "thelamapi/next-270m", "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 "thelamapi/next-270m" \ --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": "thelamapi/next-270m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use thelamapi/next-270m with Ollama:
ollama run hf.co/thelamapi/next-270m:F16
- Unsloth Desktop
- Docker Model Runner
How to use thelamapi/next-270m with Docker Model Runner:
docker model run hf.co/thelamapi/next-270m:F16
- Lemonade
How to use thelamapi/next-270m with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull thelamapi/next-270m:F16
Run and chat with the model
lemonade run user.next-270m-F16
List all available models
lemonade list
- Atomic Chat
Commit History
-
Update README.md
Verified signature8fcb82f -
Update README.md
Verified signaturecc57f56
-
Delete assets/banne5r.png
Verified signatureb42c8ac -
Rename assets/banner3basic.png to assets/banner.png
Verified signature0a16b41 -
Upload banner3basic.png
Verified signatureac01b3e -
Rename assets/banner.png to assets/banne5r.png
Verified signature81081a9
-
Update README.md
Verified signature06a9efe
-
Delete assets/bannsr.png
Verified signature5aaa5e0 -
Upload banner.png
Verified signature90889b4 -
Rename assets/banner.png to assets/bannsr.png
Verified signature4e6ddf3 -
Update README.md
Verified signature8d3a8eb -
Update README.md
Verified signaturefa1148f -
Update README.md
Verified signatureb051eb6 -
Update README.md
Verified signature731fe15 -
Rename assets/bnr.png to assets/banner.png
Verified signature5500fe1 -
Delete assets/bann.png
Verified signature8050d6e -
Upload bnr.png
Verified signature98e1cc8 -
Create assets/bann.png
Verified signaturefed166c -
Upload next-270m-f32.gguf with huggingface_hub
Verified signaturef58a31d -
Upload next-270m-f16.gguf with huggingface_hub
Verified signature824763d -
Upload next-270m-q8_0.gguf with huggingface_hub
Verified signature1e5fd62 -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x fasterb0f197b -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster91849f5 -
initial commit
Verified signature7685b38