Upload README.md with huggingface_hub
Browse files13 unmodified lines1415161718191 unmodified line2122232425262728299 unmodified lines3940414243446 unmodified lines51525354555657585960616213 unmodified linesexecutorch .pte export of google/gemma-3n-E4B-it for on-device mobile inference## model details| property | value |1 unmodified line| source model | google/gemma-3n-E4B-it || text parameters | 7.40b || transformer layers | 35 || dtype | float16 || format | executorch .pte || output size | 13.1 gb |## text-only export9 unmodified linesuse this export for text-only inference tasks. if you need multimodal capabilities use the original huggingface model## export configuration- fixed sequence length: 32 tokens6 unmodified linesfrom executorch.runtime import Runtimeruntime = Runtime.get()program = runtime.load_program("gemma-3n-E4B-it-text-only.pte")method = program.load_method("forward")# input_ids shape: [1, 32] dtype: torch.longoutput = method.execute([input_ids])# output shape: [1, 32, 262400] dtype: torch.float16```## required patches13 unmodified lines141516171819202122232425261 unmodified line282930313233349 unmodified lines444546474849505152535455566 unmodified lines63646566676869707172737413 unmodified linesexecutorch .pte export of google/gemma-3n-E4B-it for on-device mobile inference## available models| variant | dtype | size | file ||---------|-------|------|------|| bf16 | bfloat16 | 13.1 gb | Gemma3n-E4B-IT-text-only.pte || int8 | int8 weights | 9.6 gb | Gemma3n-E4B-text-only-int8.pte |## model details| property | value |1 unmodified line| source model | google/gemma-3n-E4B-it || text parameters | 7.40b || transformer layers | 35 || format | executorch .pte |## text-only export9 unmodified linesuse this export for text-only inference tasks. if you need multimodal capabilities use the original huggingface model## quantization- **bf16**: full bfloat16 precision weights- **int8**: int8 weight-only quantization via torchao - recommended for mobile deploymentnote: int4 quantization requires gpu for inference and is not suitable for cpu-only mobile deployment## export configuration- fixed sequence length: 32 tokens6 unmodified linesfrom executorch.runtime import Runtimeruntime = Runtime.get()program = runtime.load_program("Gemma3n-E4B-text-only-int8.pte")method = program.load_method("forward")# input_ids shape: [1, 32] dtype: torch.longoutput = method.execute([input_ids])# output shape: [1, 32, 262400] dtype: torch.bfloat16```## required patches
README.md+16-4