Instructions to use Likithp/v11_0.5B_fixed_s42 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Likithp/v11_0.5B_fixed_s42 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Likithp/v11_0.5B_fixed_s42") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Likithp/v11_0.5B_fixed_s42") model = AutoModelForCausalLM.from_pretrained("Likithp/v11_0.5B_fixed_s42", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Likithp/v11_0.5B_fixed_s42 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Likithp/v11_0.5B_fixed_s42" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Likithp/v11_0.5B_fixed_s42", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Likithp/v11_0.5B_fixed_s42
- SGLang
How to use Likithp/v11_0.5B_fixed_s42 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 "Likithp/v11_0.5B_fixed_s42" \ --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": "Likithp/v11_0.5B_fixed_s42", "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 "Likithp/v11_0.5B_fixed_s42" \ --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": "Likithp/v11_0.5B_fixed_s42", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Likithp/v11_0.5B_fixed_s42 with Docker Model Runner:
docker model run hf.co/Likithp/v11_0.5B_fixed_s42
| { | |
| "name": "cs11_fixed_v1", | |
| "version": "1.0", | |
| "seed": 42, | |
| "n_inner_aliases": 18, | |
| "n_t1": 7, | |
| "n_t2": 11, | |
| "n_inner_tables": 18, | |
| "n_outer_aliases": 8, | |
| "train_total": 84240, | |
| "val_total": 9720, | |
| "examples_per_alias_train": 4680, | |
| "examples_per_alias_val": 540, | |
| "sql_variants": [ | |
| "v1_IN", | |
| "v2_EXISTS", | |
| "v3_aggregate" | |
| ], | |
| "key_design_change": "All inner table names are lexically disjoint from their concept words. This prevents induction-head copying of the table name as a shortcut to produce the concept intermediate at L21. If Phase 1 (concept word at L21) still appears in the trained model, it reflects genuine weight-level semantic routing, not in-context copying.", | |
| "non_lexicality_verified": true, | |
| "concept_word_map": { | |
| "emp": [ | |
| "employ", | |
| "staff", | |
| "worker" | |
| ], | |
| "cst": [ | |
| "customer", | |
| "client", | |
| "buyer" | |
| ], | |
| "inv": [ | |
| "invoice", | |
| "bill", | |
| "charge" | |
| ], | |
| "spl": [ | |
| "supplier", | |
| "vendor", | |
| "provider" | |
| ], | |
| "shp": [ | |
| "shipment", | |
| "delivery", | |
| "parcel" | |
| ], | |
| "txn": [ | |
| "transaction", | |
| "transfer", | |
| "payment" | |
| ], | |
| "act": [ | |
| "account", | |
| "ledger", | |
| "balance" | |
| ], | |
| "ord": [ | |
| "order", | |
| "purchase", | |
| "fulfillment" | |
| ], | |
| "prd": [ | |
| "product", | |
| "item", | |
| "good" | |
| ], | |
| "brc": [ | |
| "branch", | |
| "location", | |
| "site" | |
| ], | |
| "prj": [ | |
| "project", | |
| "initiative", | |
| "program" | |
| ], | |
| "rgn": [ | |
| "region", | |
| "territory", | |
| "zone" | |
| ], | |
| "tsk": [ | |
| "task", | |
| "workitem", | |
| "action" | |
| ], | |
| "dpt": [ | |
| "department", | |
| "division", | |
| "unit" | |
| ], | |
| "ctg": [ | |
| "category", | |
| "taxonomy", | |
| "class" | |
| ], | |
| "whs": [ | |
| "warehouse", | |
| "depot", | |
| "storage" | |
| ], | |
| "empl": [ | |
| "employ", | |
| "staff", | |
| "worker", | |
| "personnel" | |
| ], | |
| "ordr": [ | |
| "order", | |
| "booking", | |
| "reservation", | |
| "request" | |
| ] | |
| } | |
| } |