This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class_name Player extends CharacterBody3D | |
| @onready var head: Node3D = $Head | |
| @onready var arms: Node3D = $Head/Camera3D/Arms | |
| @onready var head_default_pos: Vector3 = head.position | |
| @onready var arms_default_pos: Vector3 = arms.position | |
| @export var SPEED: float = 10 | |
| @export var JUMP_VELOCITY: float = 4.5 | |
| @export var HEAD_LERP_SPEED: float = 10 | |
| @export var MAX_STEP_HEIGHT: float = 0.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Near Simplest Language model API, with room to expand! | |
| # runs GPT-J-6B on 3090 and TITAN and servers it using FastAPI | |
| # change "seq" (which is the context size) to adjust footprint | |
| # | |
| # seq vram usage | |
| # 512 14.7G | |
| # 900 15.3G | |
| # uses FastAPI, so install that | |
| # https://fastapi.tiangolo.com/tutorial/ |