Text Generation
Transformers
Safetensors
English
smollm3
education
english-tutor
structured-output
experimental
merged
conversational
Instructions to use sraivante/TARA-English-Tutor-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sraivante/TARA-English-Tutor-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sraivante/TARA-English-Tutor-3B") 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("sraivante/TARA-English-Tutor-3B") model = AutoModelForCausalLM.from_pretrained("sraivante/TARA-English-Tutor-3B", 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
- vLLM
How to use sraivante/TARA-English-Tutor-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sraivante/TARA-English-Tutor-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sraivante/TARA-English-Tutor-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sraivante/TARA-English-Tutor-3B
- SGLang
How to use sraivante/TARA-English-Tutor-3B 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 "sraivante/TARA-English-Tutor-3B" \ --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": "sraivante/TARA-English-Tutor-3B", "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 "sraivante/TARA-English-Tutor-3B" \ --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": "sraivante/TARA-English-Tutor-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use sraivante/TARA-English-Tutor-3B with Docker Model Runner:
docker model run hf.co/sraivante/TARA-English-Tutor-3B
Download training_data/SHA256SUMS from sraivante/TARA-English-Tutor-3B: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/sraivante/TARA-English-Tutor-3B/resolve/main/training_data/SHA256SUMS
- Command line
-
hf download hf://sraivante/TARA-English-Tutor-3B/training_data/SHA256SUMS
-
curl -L -o SHA256SUMS https://huggingface.co/sraivante/TARA-English-Tutor-3B/resolve/main/training_data/SHA256SUMS
1.08 kB
| 572d7057e230ef74592d9f0cdc5badeec7edfe5651cd3bfb74edc9bb32e5a7c6 .gitattributes | |
| cbbc81e0b4361238036a0b0289157eab1799e852b586f4406b85852760d94e44 COPYRIGHT.md | |
| 3ddf9be5c28fe27dad143a5dc76eea25222ad1dd68934a047064e56ed2fa40c5 LICENSE | |
| b7d7c689f2545b270ed8f2d13a8b8294732df81d7a79f325a444321b0660d26c NOTICE | |
| 2231a5e07d3986fd94ef682fc0a4d180f35a6d808b5db9bcaabaea91686a6123 README.md | |
| 4d0003131a2e906712f371183385028862931c49f3b017ad61777dbca45287b9 SOURCE_LICENSE_MIT | |
| 33a9949ef2e43f97581ba6e371007298027c35c4266924c40a5dc8c3dc25ada0 data/train.jsonl | |
| dc1d73be7d960fa952303951aac2ed45b1068e3aeda17c2a28b8a0407fd6a47f data/validation.jsonl | |
| b9d424dedd53375d0fa551e684012ffc04ab561e1c0b011f54b4bb8f8777c58f dataset_audit.json | |
| e8a95f089ea3e5e7b457a1f08e72d4dd579347bc4a1b0599d83761eca8a14e44 grade_profiles.json | |
| f05fbb229fc206146ca2514e6abf916fd036ec64df58356c995f98a028f31cc7 provenance.json | |
| 501d21369ad533f1789199929e3aaa97e267532c5c2df5cc5677d0178a2b456f source_manifest.json | |
| b8b1147b965a8d65f20ebd3301594e2e281057c62a4cd08f28220015f8572038 validate_dataset.py | |