Skip to main content

GeoV

Overview

The GeoV model was designed by Georges Harik and uses Rotary Positional Embeddings with Relative distances (RoPER) by Georges Hark and Varuna Jayasiri.

RoPER, in addition to using relative positions in the attention score calculation by RoPE embeddings, adds relative positional information explicitly to value embeddings. Specifically, it incorporates the relative positions of the tokens paid attention to. RoPER has given better performance in some algorithmic tasks, and seems comparable to RoPE in language modeling.

The GeoV tokenizer uses SentencePiece unigram language model and tokenizes symbols, digits and new line characters separately, in order to achieve better performance on mathematical content and code.

This model was contributed by gharik and vpj.

We have shared 9B parameter pre-trained model at GeoV/GeoV-9b, We plan to release checkpoints around every 20b tokens trained from here until around 300b tokens. We will also train smaller and larger versions. Our aim is to have broadly available smaller and larger models.

This implementation is built on top of transformers library.

Installations

pip install geov

Generation

from geov import GeoVForCausalLM, GeoVTokenizer

model = GeoVForCausalLM.from_pretrained("GeoV/GeoV-9b")
tokenizer = GeoVTokenizer.from_pretrained("GeoV/GeoV-9b")

prompt = "In mathematics, topology is the study of"

input_ids = tokenizer(prompt, return_tensors="pt").input_ids

gen_tokens = model.generate(
    input_ids,
    do_sample=True,
    temperature=0.9,
    max_length=100,
)
gen_text = tokenizer.batch_decode(gen_tokens)[0]

Metadata

Release files for geov 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geov 0.0.2
File Size Uploaded
geov-0.0.2.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geov 0.0.2
File Interpreter ABI Platform
geov-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 27.2 kB

Release files / geov-0.0.2.tar.gz

Download URL geov-0.0.2.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5a737bd20531ed1ad72c9742839af754371d0108fd997b02b0200c8ae6393e3f
BLAKE2b-256 checksum
How to use checksums
a724fc830ae9da607c5857b071056ee78972e72575e0a04b9c1ec9c40a35bd05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.27.1 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.7.11

Release files / geov-0.0.2-py3-none-any.whl

Download URL geov-0.0.2-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cbde524f8dbe208ea904bcf6910400d7476514e6f407cef911ddd107eb065db
BLAKE2b-256 checksum
How to use checksums
d66e2a0e17ee8e8c03f38652c6f02c00a080a31a8133d4477e17b9ecad436ff3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.27.1 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.7.11

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page