Text Generation
Transformers
Safetensors
ncp_smol
next-concept-prediction
conceptlm
causal-lm
smollm2
tessera
custom_code
Instructions to use yava-code/Tessera-135M-Gate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yava-code/Tessera-135M-Gate with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yava-code/Tessera-135M-Gate", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("yava-code/Tessera-135M-Gate", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yava-code/Tessera-135M-Gate with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yava-code/Tessera-135M-Gate" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yava-code/Tessera-135M-Gate", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/yava-code/Tessera-135M-Gate
- SGLang
How to use yava-code/Tessera-135M-Gate 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 "yava-code/Tessera-135M-Gate" \ --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": "yava-code/Tessera-135M-Gate", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "yava-code/Tessera-135M-Gate" \ --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": "yava-code/Tessera-135M-Gate", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use yava-code/Tessera-135M-Gate with Docker Model Runner:
docker model run hf.co/yava-code/Tessera-135M-Gate
Download eval.json from yava-code/Tessera-135M-Gate: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/yava-code/Tessera-135M-Gate/resolve/main/eval.json
- Command line
-
hf download hf://yava-code/Tessera-135M-Gate/eval.json
-
curl -L -o eval.json https://huggingface.co/yava-code/Tessera-135M-Gate/resolve/main/eval.json
1.56 kB
| { | |
| "intervention": { | |
| "shuffle_minus_predicted": 2.2351741790771484e-08, | |
| "similar_shuffle_minus_predicted": -2.9802322387695312e-08, | |
| "zero_minus_predicted": 0.020453326404094696 | |
| }, | |
| "predicted": { | |
| "codebook_perplexity": 2.4087092876434326, | |
| "codebook_usage": 0.3298611044883728, | |
| "loss_by_chunk_offset": { | |
| "0": 1.9171534776687622, | |
| "1": 1.861592411994934, | |
| "2": 1.8690117597579956, | |
| "3": 1.8531707525253296 | |
| }, | |
| "ntp_loss": 1.8750678300857544, | |
| "perplexity": 6.521261443051458 | |
| }, | |
| "shuffle": { | |
| "codebook_perplexity": 2.4087092876434326, | |
| "codebook_usage": 0.3298611044883728, | |
| "loss_by_chunk_offset": { | |
| "0": 1.9171533584594727, | |
| "1": 1.8615922927856445, | |
| "2": 1.869011640548706, | |
| "3": 1.8531708717346191 | |
| }, | |
| "ntp_loss": 1.8750678524374962, | |
| "perplexity": 6.521261588813012 | |
| }, | |
| "similar_shuffle": { | |
| "codebook_perplexity": 2.4087092876434326, | |
| "codebook_usage": 0.3298611044883728, | |
| "loss_by_chunk_offset": { | |
| "0": 1.9171534776687622, | |
| "1": 1.861592411994934, | |
| "2": 1.8690117597579956, | |
| "3": 1.8531707525253296 | |
| }, | |
| "ntp_loss": 1.875067800283432, | |
| "perplexity": 6.521261248702725 | |
| }, | |
| "zero": { | |
| "codebook_perplexity": 2.4087092876434326, | |
| "codebook_usage": 0.3298611044883728, | |
| "loss_by_chunk_offset": { | |
| "0": 1.9391287565231323, | |
| "1": 1.896687388420105, | |
| "2": 1.8889083862304688, | |
| "3": 1.8580405712127686 | |
| }, | |
| "ntp_loss": 1.895521156489849, | |
| "perplexity": 6.656016326994612 | |
| } | |
| } |