Text Generation
Transformers
Safetensors
ncp_smol
next-concept-prediction
conceptlm
causal-lm
smollm2
tessera
custom_code
Instructions to use yava-code/Tessera-1B-Nano with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yava-code/Tessera-1B-Nano with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yava-code/Tessera-1B-Nano", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("yava-code/Tessera-1B-Nano", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yava-code/Tessera-1B-Nano with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yava-code/Tessera-1B-Nano" # 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-1B-Nano", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/yava-code/Tessera-1B-Nano
- SGLang
How to use yava-code/Tessera-1B-Nano 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-1B-Nano" \ --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-1B-Nano", "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-1B-Nano" \ --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-1B-Nano", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use yava-code/Tessera-1B-Nano with Docker Model Runner:
docker model run hf.co/yava-code/Tessera-1B-Nano
Rewrite card intro: lead with the story, move numbers to a section
Browse files
README.md
CHANGED
|
@@ -21,6 +21,13 @@ module guesses the next code, and that guess is fed back into the decoder while
|
|
| 21 |
writes. The surprising part is not that it works - it is what the model turns out
|
| 22 |
to be reading from the channel.
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
## TL;DR
|
| 25 |
|
| 26 |
Same billion tokens, same order, same initialization as the unchanged baseline - the only difference is the concept path. Three findings survive every control we threw at them:
|
|
|
|
| 21 |
writes. The surprising part is not that it works - it is what the model turns out
|
| 22 |
to be reading from the channel.
|
| 23 |
|
| 24 |
+
https://huggingface.co/yava-code/Tessera-1B-Nano/resolve/main/demo.mp4
|
| 25 |
+
|
| 26 |
+
*60-second demo of the [comparison Space](https://huggingface.co/spaces/yava-code/tessera-comparison):
|
| 27 |
+
the metals rows were captured live from the Space; the photosynthesis row
|
| 28 |
+
was generated with the Space's own code against this checkpoint on CPU
|
| 29 |
+
(the ZeroGPU quota ran out mid-capture).*
|
| 30 |
+
|
| 31 |
## TL;DR
|
| 32 |
|
| 33 |
Same billion tokens, same order, same initialization as the unchanged baseline - the only difference is the concept path. Three findings survive every control we threw at them:
|